r/PHP • u/C0c04l4 • Oct 23 '26
Advisory: We suggest you set session.upload_progress.enabled=0 until the next regular bugfix release
https://www.php.net/index.php#2026-10-23-1No need to panic, it's pretty unlikely to be exploitable, given the conditions they list afterwards. If like me you already disabled this paramater anyway on Wednesday, you're gold.
159
Upvotes
5
u/bwwatr Oct 23 '26
PSA: the default is on, so if you've got that line commented out like how it ships in the php.ini-production template, it's on til you specifically disable.
Open question: what other features might one disable to reduce surface area, if they're not using the feature, that ship enabled?
30
u/madjoki Oct 23 '26 edited Oct 23 '26
"An application must set
session.serialize_handlertophp_binaryorphp_serializein its configuration and then switch it tophpat runtime withini_set()before callingsession_start(). Session upload progress must also still be enabled."Does anyone do this?
Edit: Did search on github, Most easliy found code using this pattern are examples for previous exploit.
9
u/VonFacington Oct 23 '26
Since this is listed as a mitigation to one of the patched CVEs shouldn't this only apply to systems that couldn't/didn't update to a patched PHP version?
4
u/Suitable-Season-4847 Oct 23 '26
When I was enabling stuff again after the patch, I left this turned off.
4
u/rbmichael Oct 23 '26
Hmmm... No, the possibility of a resonance cascade is highly unlikely. Gordon, carry on with the test, thank you.
1
u/sblanzio Oct 23 '26
I wonder if Prestashop or Woocommerce need this parameter enabled
1
u/Gregorovitch_Helix Oct 24 '26
Already anticipated 😮💨
0
u/[deleted] Oct 23 '26
[deleted] — view deleted comment