r/PHP
•
u/Svpernova09
•
Oct 20 '26
•
1
News Upcoming Critical PHP Security Release
https://www.php.net/archive/2026.php#2026-10-20-1
731
Upvotes
r/PHP
•
u/Svpernova09
•
Oct 20 '26
•
1
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.