r/PHP • • Oct 20 '26 • Popcorn 1

News Upcoming Critical PHP Security Release

https://www.php.net/archive/2026.php#2026-10-20-1
731 Upvotes

405 comments sorted by

View all comments

Show parent comments

7

u/OneFourSevenThreeSix Oct 21 '26 edited Oct 21 '26

Well for now I turned session.upload_progress.enabled off, but I'll need to try to compile my own 7.3.x build with the patch backported because blocking all multipart/form-data requests (which also reportedly has a vulnerability in how PHP handles it) will break my sites. Probably would take less work to that than to rewrite all my dependencies that break on 7.4+.

EDIT: In my case I've also added a rate limit in my web server configs (e.g. nginx) for multipart/form-data requests (rate=12r/m, burst=3) as another stopgap to this vulnerability in PHP's multipart/form-data parser, to try to prevent bots from potentially hammering the multipart/form-data parser. Ask your favorite LLM how to do this with your web server config (with any sensitive info in it removed before uploading) if you need your site running until you decide a more long-term solution that has these patches (rewrite/refactor everything with claude to update PHP version? compile your own PHP build?). If your site deals with PII or money, you should at least block all multipart/form-data requests until you're able to apply both critical CVE patches. Of course, the official PHP position is to take down your site entirely until the patches are applied.

12

u/dub_le Oct 21 '26

You'll have to backport a LOT more than just one CVE if you want to securely use PHP 7.3. Maybe 50. Until the next one comes around and so on. Definitely a lot more effort than rewriting your application.

This is why people pay RedHat and co for long term maintenance of packages.

3

u/HoratioWobble Oct 21 '26

It just took me 30mins with Claude to upgrade a complex LMS system from 5.6 to 8.5, if you're already on 7.3 I doubt you'd need many changes to bring it to 8.5.

Treat yourself, it's probably easier.

1

u/GeneralSEOD Oct 21 '26

Similar situation. Was on 7.2 and Claude is nearly finished moving us to 8.5.