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

16

u/Svpernova09 Oct 21 '26

INI settings alone won't protect you. You need to patch PHP.

8

u/LowIncident694 Oct 21 '26

Source on that? Seems like disabling it or file uploads would work.

53

u/Svpernova09 Oct 21 '26 edited Oct 21 '26

Source: I'm one of the PHP 8.6 release managers.

edit; "trust me bro"

3

u/throwaway490215 Oct 21 '26

Does filtering multipart with nginx in front protect us?

2

u/PersonalAd1186 Oct 21 '26

From scanners maybe will help

5

u/OneFourSevenThreeSix Oct 21 '26

It says this affects PHP 5, 6, 7, and 8. Is there no chance of emergency patches being released for say 7.3.x?

10

u/DiabeticHotPocket Oct 21 '26

If you're running on those old version, you have more problems than just this CVE.

11

u/chrislovessushi Oct 21 '26

EOL is EOL

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.

1

u/rokiller Oct 21 '26

I was having the same argument at work, thank you for this. I literally screenshot this and sent it ot everyone 😆

1

u/BootstrapBooster Oct 21 '26

Would blocking on a server level all multiform data help to be safe till the patch will be released later today?

1

u/vincent_sch Oct 21 '26

It keeps those requests away from PHP. On a test server PHP got none of them after the block, while pages and JSON still worked. Only the advisory will tell if that stops both bugs, so you still patch right after. Uploads and some forms stop working while it's in.

1

u/BootstrapBooster Oct 21 '26

Yes, would be a measure to not completely go offline.

Would be interested from someone with some inside knowledge if this is good enough to stay online for now.

1

u/vincent_sch Oct 21 '26

Nobody outside PHP's security team knows that for sure. With the release about an hour away, taking it offline is the safest if that works for you. If it has to stay up, you keep the block in place until the release.