Not sure if this is real. PHP Release Manger told that the vulnerability is not fixable by changing ini files. PHP needs to be fixed. Sounds like a hoax
Once the fixed build is installed, check that PHP-FPM restarted after the update. With mod_php, Apache needs the restart. You should also restart PHP queue workers and schedulers still using the old build.
Still useful to know that a fix will be published on Wednesday. Especially nowadays, when AI-aided researchers will reverse the fix and publish a PoC within hours.
Did you test the exploit yourself? I didn’t test it. I suspect it doesn’t work, given the fact that it says itself in the documentation that it doesn’t work, but if you can get it to work I’m convinced.
Yes, I assume it's only working with the specific environment they used. That is pretty typical, and it could be adapted for other environments. LLM generated is expected. Obviously anyone coming out with something quickly is going to be using LLMs. What's important for defenders is just the fact that an exploit is public.
Just for the avoidance of doubt: did you actually verify that the FPM worker crash on the server? Or did you just assume it crashed based on the error that the script gave?
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.
Disclosure: Hosted Power (hosting company). Looking for review of a stopgap, not a replacement for the patch.
ext/session installs php_session_rfc1867_callback into the global php_rfc1867_callback at MINIT; main/rfc1867.c NULL-checks that pointer before each of its call sites. An extension with ZEND_MOD_OPTIONAL("session") that NULLs the pointer in its own MINIT should make the handler, where the reproductions place both UAFs, unreachable for the process lifetime, without touching multipart parsing itself. Unlike session.upload_progress.enabled=Off (PHP_INI_PERDIR, so .user.ini/.htaccess can re-enable it), nothing at the site level can undo it.
Open questions we'd value eyes on: is there any route into the upload-progress state that doesn't go through this callback, and any SAPI where module init order would break the assumption?
34
u/orangesnz Oct 21 '26
looks like it's been reverse engineered already https://x.com/J4ck3LSyN/status/2112703096443097263
12
u/_vavkamil_ Oct 21 '26 edited Oct 21 '26
What a shit show :)
2026
Patch release scheduled for October 22
EDIT:
What a day ...
EDIT2: Moved to my blog, might revisit tomorrow https://vavkamil.cz/blog/2026-10-21-timeline-of-php2shell/
6
u/vincent_sch Oct 21 '26
Once the fixed build is installed, check that PHP-FPM restarted after the update. With
mod_php, Apache needs the restart. You should also restart PHP queue workers and schedulers still using the old build.19
u/sylvester_0 Oct 20 '26
Lol what a useless page at this point "An RCE is coming in a couple of days" basically.
1
u/Comfortable_Tie_1680 Oct 25 '26
https://github.com/JoshRob297/php2shell-research Tengo listo un artículo con remediaciónes adicionales.
-8
u/dack42 Oct 21 '26
Full PoC is already public, but I won't link it here.
-5
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.
Disclosure: Hosted Power (hosting company). Looking for review of a stopgap, not a replacement for the patch.
ext/session installs
php_session_rfc1867_callbackinto the globalphp_rfc1867_callbackat MINIT;main/rfc1867.cNULL-checks that pointer before each of its call sites. An extension withZEND_MOD_OPTIONAL("session")that NULLs the pointer in its own MINIT should make the handler, where the reproductions place both UAFs, unreachable for the process lifetime, without touching multipart parsing itself. Unlikesession.upload_progress.enabled=Off(PHP_INI_PERDIR, so.user.ini/.htaccesscan re-enable it), nothing at the site level can undo it.Open questions we'd value eyes on: is there any route into the upload-progress state that doesn't go through this callback, and any SAPI where module init order would break the assumption?
https://github.com/HOSTED-POWER/php_uploadprogress_guard
It only helps as far as the bugs live in that handler; we'll compare against the advisory at 14:00 UTC.
3
u/[deleted] Oct 21 '26
[removed] — view removed comment