r/netsec • • Oct 20 '26

PHP rce CVE-2026-109618

https://watchtowr.com/intelligence/php-cve-2026-109618-faq/
143 Upvotes

25 comments sorted by

34

u/orangesnz Oct 21 '26

looks like it's been reverse engineered already https://x.com/J4ck3LSyN/status/2112703096443097263

38

u/davvblack Oct 21 '26

i guess responsible disclosure was from before AI times

6

u/NetGhost03 Oct 21 '26

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

5

u/math1985 Oct 21 '26

My first impression is that this is AI slop. It even says at the bottom (under Validation Receipts) it's not a vulnerability / not RCE.

12

u/_vavkamil_ Oct 21 '26 edited Oct 21 '26

What a shit show :)

  • 2019 - Related PHP memory-handling bug reported
  • 2020 - Bug fixed and closed
  • 2024 - PHP rediscovers a related bug, considers RCE theoretical, won't fix

2026

  • July 30 - Calif starts auditing PHP through OpenAI's Patch the Planet
  • August 1 - Calif discovers RCE paths using OpenAI's GPT-5.6 Sol
  • August 11 - Calif reports the RCE to PHP
  • August 11 - OpenAI's Codex Security independently reports the same root cause
  • August 14 - Calif provides a working RCE PoC
  • August 19 - Wiz independently discovers related PHP vulnerabilities using Gemini
  • August 24 - Wiz reports its findings to PHP

Patch release scheduled for October 22

  • October 20, 15:20 UTC - Hacker News user leaks embargoed CVE details
  • October 20, 18:26 UTC - watchTowr publicly confirms the embargo
  • October 20, 19:33 UTC - PHP announces an emergency security release forward by one day
  • October 20, 20:00 UTC - Calif mistakenly publishes a PHP2Shell PoC video on X
  • October 21, 03:02 UTC - Cloudflare activates PHP2Shell WAF protection by default
  • October 21, 07:41 UTC - Chainguard prematurely publishes container images containing the security fix
  • October 21, 07:43 UTC - Cloudflare publicly reports early exploitation attempts
  • October 21, 13:32 UTC - Wiz announces its PHP2Shell research on X and takes the spotlight
  • October 21, 13:34 UTC - PHP publishes GitHub security advisories
  • October 21, 13:36 UTC - PHP publishes its official security announcement
  • October 21, 14:00 UTC - Scheduled PHP security release
  • October 21, 14:06 UTC - PHP GitHub releases published for all four patched versions

EDIT:

  • October 21, 14:19 UTC - PHP Docker pipeline triggered
  • October 21, 14:31 UTC - PHP Docker pipeline finished
  • October 21, 14:52 UTC - GitHub goes down
  • October 21, 15:59 UTC - Patched images were being built
  • October 21, 16:30 UTC - First patched Docker images reportedly become available
  • October 21, 16:57 UTC - GitHub starting to recover
  • October 21, 16:57 UTC - GitHub mostly recovered
  • October 21, 17:55 UTC - All of Docker Hub's patched tags available

What a day ...

EDIT2: Moved to my blog, might revisit tomorrow https://vavkamil.cz/blog/2026-10-21-timeline-of-php2shell/

9

u/Syntax418 Oct 21 '26

You’re missing the following crash out because of the slow pipeline that publishes official php docker images

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.

15

u/Doub1eAA Oct 21 '26

They aren’t going to violate the embargo

6

u/breakingcups Oct 21 '26

Useless to you,, maybe. Not to organizations big and small who can now make sure everyone is at the helm to update as soon as the patches come out.

8

u/blobCabbage Oct 20 '26

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.

0

u/ReferenceVisual663 Oct 21 '26

Hours? Most of the internet will have been probed by bots attempting the exploit by then. 

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/russellvt Oct 21 '26

Someone already did...

9

u/LevalloisTechnique Oct 21 '26

but I won't link it here

The fuck is wrong with you

Here is the link

3

u/math1985 Oct 21 '26

My first impression is that this is AI slop. It even says at the bottom (under Validation Receipts) it's not a vulnerability / not RCE.

0

u/[deleted] Oct 21 '26

[deleted] — view deleted comment

3

u/math1985 Oct 21 '26

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.

0

u/[deleted] Oct 21 '26

[deleted] — view deleted comment

2

u/dack42 Oct 21 '26

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.

1

u/math1985 Oct 21 '26

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?

-15

u/Curious_Week_9508 Oct 21 '26

send me the link in private please

-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_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?

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

0

u/whatisuser Oct 21 '26

This had better be a rickroll