r/webdev • • Oct 20 '26

News PSA: Upcoming Critical PHP Security Release

https://www.wordfence.com/blog/2026/10/psa-upcoming-critical-php-security-release/

The release fixes two critical vulnerabilities, both rated 9.2 on the CVSS v4.0 scale.

374 Upvotes

67 comments sorted by

View all comments

Show parent comment

37

u/fuzzball007 Oct 21 '26

We literally can't update it at the moment, the patched versions aren't out yet. This is likely the next best thing until then

20

u/Irythros Oct 21 '26

Official recommendation by maintainers is to take any reachable PHP site offline until patch.

The upload_progress fix was confirmed by maintainer that it wont stop the problem.

1

u/[deleted] Oct 21 '26

[removed] — view removed comment

4

u/Old_Adeptness5169 Oct 21 '26 edited Oct 21 '26

Update after PHP's advisories: the session upload-progress handler is one of the confirmed routes, but not the only one. The advisories also describe out-of-memory tricks in the multipart parser, plus some routes no extension can close. v3 carries the fixed multipart parser with a memory guard and keeps the upload-progress handler out, which on typical PHP-FPM hosting closes the routes that work before any application code runs. Still a stopgap: update to 8.5.12/8.4.27/8.3.36/8.2.35 (or your distro's backport) as soon as you can. Thanks to everyone who pushed back today.


Agreed, and thanks for the write-up. On shared hosting we couldn't rely on locking every pool (CLI, CGI and mod_php are uncovered by php_admin_flag, and panels regenerate pool files), so we went one step further: a tiny extension that unhooks ext/session's rfc1867 callback at MINIT. That makes the upload-progress handler unreachable no matter what any ini layer says, and uploads keep working.

https://github.com/HOSTED-POWER/php_uploadprogress_guard (disclosure: Hosted Power, we wrote it)

Same caveat as yours: it cuts the same code path as the ini setting, just harder to undo. If the "not sufficient" reports mean there's a route outside that handler, it won't cover that either. We'll know at 14:00 UTC.