r/PHPhelp • u/Stunning_Gas_3862 • 28d ago
PHP2Shell
I'm fed up with all the fake and false information about the PHP2Shell vulnerability. Do you have any idea what the vulnerability actually looks like, like a memory issue or a request handling problem, what exactly is it?
0
Upvotes
View all comments
1
u/thejester1324 27d ago
Both, in sequence. A request pushes PHP past memory_limit while it is still parsing the body, and the crash can leave request data half-built or already freed. A later request handled by the same worker may then use that stale state. That is where the code execution comes from.
php.net's 21 Oct advisory covers both CVEs: CVE-2026-109618 is the out-of-memory one, CVE-2026-109619 is the stale state one. Fixed in 8.5.12, 8.4.27, 8.3.36 and 8.2.35. 8.1 and older are out of support. php.net has source backports for 7.4, 8.0 and 8.1, and your distro may ship a fixed package.
Full write-up of the chain: https://calif.io/php2shell/