Re:Upcoming Critical PHP Security Release
by nr378 on Wednesday October 21, 2026 @08:03AM
(#50179489)
I've tested the CVEs on PHP 8.5.11 and `session.upload_progress.enabled = Off` definitely increases safety but it doesn't guarantee it. Use of plugins can open up additional exposure.
Re:Upcoming Critical PHP Security Release
by giancarlostoro on Wednesday October 21, 2026 @06:39AM
(#50178695)
If you're behind CloudFlare apparently they'll cover you, issue is, some people don't have their web servers configured to block traffic NOT from CloudFlare, so it is kind of a bandaid that's falling off I guess.
Re:Upcoming Critical PHP Security Release
by cube00 on Wednesday October 21, 2026 @07:35AM
(#50179185)
I'd check this carefully and make sure you have the WAF enabled. I seemed to always have plenty of weird looking PHP and WP requests happily forwarded by CloudFlare to my servers.
Users on the Free plan have access to the Cloudflare Free Managed Ruleset, a subset of the Cloudflare Managed Ruleset.
Re:Upcoming Critical PHP Security Release
by giancarlostoro on Wednesday October 21, 2026 @11:00AM
(#50182192)
The only PHP project I had running I took down, it was literally just a web UI for my SQL databases on said box, which wasn't really full of anything meaningful, just old old Discord chatbot logs from forever ago, but still didnt want someone scraping those, so I removed php from the box entirely, I didnt even have a domain for the box so not super worried.
Everything else I use is not on PHP.
Re:Upcoming Critical PHP Security Release
by cryptonym on Wednesday October 21, 2026 @11:44AM
(#50182928)
They only block most common attempts they have seen.
They can't cover you. Only proper fix is updating your server.
Re:Upcoming Critical PHP Security Release
by zo9yhylnu on Wednesday October 21, 2026 @07:07AM
(#50178917)
the writeup you found has been updated to reflect the fact that the exploits provided by the author are not as severe as initially thought.
This suggests they might not have been exploits related to the CVE in question, so what you did might not be enough, be careful.
Re:Upcoming Critical PHP Security Release
by nicce on Wednesday October 21, 2026 @07:25AM
(#50179080)
This makes me wonder if they really vibe coded the whole blog post without verifying anything by themselves. This should stop.
Re:Upcoming Critical PHP Security Release
by tikotus on Wednesday October 21, 2026 @08:26AM
(#50179753)
I downloaded the thing, was going to try it out to verify. But the checksum didn't match (probably just a random string generated by an LLM). I left it at that and turned off php.
Re:Upcoming Critical PHP Security Release
by richardbarosky on Wednesday October 21, 2026 @07:24AM
(#50179073)
Checking that now. Thank you!
Re:Upcoming Critical PHP Security Release
by bombcar on Wednesday October 21, 2026 @07:02AM
(#50178876)
# BEGIN php2shell-mitigation
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP:Content-Type} multipart [NC]
RewriteRule .* - [F,L]
</IfModule>
<If "%{HTTP:Content-Type} =~ /multipart/i">
Require all denied
</If>
# END php2shell-mitigation
and for caddy @multipart header_regexp Content-Type (?i)multipart
respond @multipart 403
@uploads_php path_regexp uploads_php ^/(?:.*/)?wp-content/uploads/.*\.php(?:/.*)?
respond @uploads_php 404
Next will be block everything but GET, then static site copy, then administratively down
Re:Upcoming Critical PHP Security Release
by huhtenberg on Wednesday October 21, 2026 @09:49AM
(#50180936)
On nginx a stop-gap measure is to block all multipart posts before they reach the php code.
Add this to nginx.conf (or drop as a text file into /etc/nginx/conf.d/) :
map $http_content_type $block_multipart { default 0; ~*^multipart/form-data 1; }
Then in every 'location /' block for every hosted server: location / {
if ($block_multipart) { return 403; }
...
}
Then restart nginx.
I initially updated the following php.ini setting and verified that it updated via phpinfo(). I understand this to be only a possible mitigation (see below).
According to someone stating they are one of the PHP release managers: https://www.reddit.com/r/PHP/comments/1xb2utu/comment/phyu5m...I use Apache, and added an htaccess rewrite rule in my base directory to block all requests containing multi-part headers. Rewrite rules can also be added into Apache virtual host blocks. Accepting file uploads are not a critical function of the app in my case. This blocks multi-part form requests before they reach PHP.
And verified the non-block vs. block case. https://freeimage.host/i/nOqumyNI'm continuing to learn about the situation and may take the server offline as I learn more.
The writeup I found here:
https://jackalsyn.com/posts/php-up-2026.html
Content from a couple of my ChatGPT 6 Pro sessions about the issue:
https://chatgpt.com/share/6ad89ea3-b2f0-83ea-9c4c-2ecf5cc24b...
https://chatgpt.com/share/6ad8ad3d-3f6c-83e9-abf0-41da8a0d65...
https://en.wikipedia.org/wiki/PHP2Shell