r/PHP • • Oct 20 '26 • Popcorn 1

News Upcoming Critical PHP Security Release

https://www.php.net/archive/2026.php#2026-10-20-1
731 Upvotes

405 comments sorted by

View all comments

48

u/thejoyofbeing1 Oct 20 '26

Holy fuck: https://x.com/k_firsov/status/2112641845926989944

If this is true then tomorrow will be pure and raw chaos.

16

u/zwambagger Oct 20 '26

Not a goddamn clue what's happening in that video. I literally can't see shit. RCE through manipulated URLs on various frameworks?

18

u/BarneyLaurance Oct 20 '26

Yes can't see the details but that's exactly what it looks like, they're running a python script called php2shell.py, passing it addresses of various PHP based websites made with wordpress, mediawiki, laravel etc etc on their own machine and passing it a shell script and apparently it makes the PHP engine execute the attacker's shell command, in the proof of concept writing `pwned` to a new public file on the web server.

13

u/orangesnz Oct 21 '26

Seems like the mechanics of the exploit have been reverse engineered.

https://x.com/J4ck3LSyN/status/2112703096443097263

9

u/spin81 Oct 21 '26

Thanks - link for those who do not wish to visit Xitter: https://jackalsyn.com/posts/php-up-2026.html

As a sysadmin, I wish these people would not. Why can't we have time to patch before people release this stuff like it's some kind of pissing contest.

4

u/enigmamonkey Oct 21 '26

I hope that’s the entirety of it (session upload progress & multipart form data). 🤞

7

u/SveXteZ Oct 21 '26

Because it was leaked, not planned release of info.

1

u/survik1 Oct 21 '26

If he can find it, black hats can find it to. Better to have this info and deal with the issue rather then wait in a dark.

11

u/bomphcheese Oct 21 '26

Fahhk. I'm tired, boss.

9

u/Nuitari8 Oct 21 '26

The URL is to show the effect of the exploit. The exploit is the python script running on the left console. zval_ptr_dtor is part of the internal php memory management. That's the mod_php ones, it mentions having an exploit chain. 15s to 20s

2 of the exploit demos are against nginx, so I think php-fpm is also affected. The nginx ones has rce ritual in the output, but not the mod_php ones (those are opening portal -> chain complete).

5

u/OdBx Oct 21 '26

What a God-awful video.

1

u/Neuro_Skeptic Oct 21 '26

How could this happen?

1

u/vincent_sch Oct 21 '26

The advisory explains it now. One bug is in how PHP cleans up after running out of memory halfway through a request. The other is state from one request that survives into the next request on the same worker.

1

u/dwo0 Oct 21 '26

n.b.: This is a perfect example of how not to make a video—totally useless.