r/Magento • • Oct 21 '26

Critical PHP updates today - attacks expected within 15 minutes

PHP2Shell has been rated 9.2 out of 10. Sansec Shield may not be able to block.

There’s a patch being released at 2PM and attacks are expected to start within 15 minutes.

Enjoy restructuring your day everyone!

https://sansec.io/research/php2shell

18 Upvotes

7 comments sorted by

4

u/lucidmodules Oct 21 '26

Block uploads at the server level (nginx, apache, traefik, caddy) or shut down the server until you patch. Especially if it is below PHP 8.2 as those version won't receive updates.

2

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.


For old PHP there's a middle ground between blocking uploads and shutting down, if you can't do either: we (Hosted Power, a hosting company) open-sourced a small extension that switches off the session upload-progress handler at PHP startup, which is where the researchers who reproduced the bugs placed them. Admin uploads keep working, and it builds from PHP 5.6 to 8.5, so OpenMage/M1 boxes on 7.x are covered too: https://github.com/HOSTED-POWER/php_uploadprogress_guard

Honest caveats: it's hours old and covers the bugs only as far as they live in that handler; some core devs say that path alone isn't the whole story. So patch the moment 8.2+ packages land, and treat this as time-buying for what won't get a patch. We'll post what the advisory says at 14:00 UTC.

2

u/-_-_adam_-_- Oct 21 '26

Spicy spicy day

-1

u/[deleted] Oct 21 '26

[removed] — view removed comment

2

u/Dizzy_Key_7400 Oct 21 '26

Has the been released yet?

3

u/vincent_sch Oct 21 '26

Not yet, php.net still shows 8.5.11 as the newest. It's due at 14:00 UTC, or earlier if PHP sees attacks. Until then you could block multipart requests in nginx, but uploads in the admin stop working while it's in. I wrote up the config here: https://www.vincentschmalbach.com/cve-2026-109618-and-cve-2026-109619-what-you-should-do-now/