When the PHP2Shell disclosure landed in October 2026 (two pre-authentication memory-safety bugs in PHP core, CVSS 9.2, with essentially every build since PHP 5.4 in scope), the public conversation collapsed into a single question within hours: which of the exploit repos flooding GitHub was real. I run infrastructure for a living, and the answer mattered to machines I am responsible for. So instead of arguing about it, I tested it.
The bugs themselves are worth understanding precisely. Both live in session.upload_progress, a feature almost nobody enables deliberately and almost everybody ships. CVE-2026-109619 is a use-after-free rooted in stale global state across requests, exploitable for memory disclosure or code execution. CVE-2026-109618 is corruption in out-of-memory handling. The coordinated disclosure by Wiz Research, OpenAI Codex Security and Calif, with the PHP Foundation, shipped fixes in PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. The researchers' own exploit was never released.
What the controls showed
The first result was about the bug, not any exploit. A plain multipart POST (nothing exotic, no malformed protocol) drove a stock PHP-FPM worker into the vulnerable state eight times out of eight. The identical input against the identical image with session.upload_progress.enabled = armed zero times out of three. That is the strongest evidence a defender can ask for: same input, same binary, one configuration line, and the trigger is gone. The interim mitigation did not need faith; it had a controlled experiment.
The second result was about evidence quality in public exploits. I picked the most credible published exploit and tested it the way the question deserved: hash-pinned release assets, a proof payload written by the target process itself rather than inferred from output, containers restarted between runs for fresh address-space layout, and mandatory negative controls. The result was clean in both directions: fifteen out of fifteen successful code executions across three unpatched official PHP images, and zero successes on patched 8.4.27, patched 8.5.12, and the same unpatched image with the feature disabled. It succeeds where it should and fails where it should. That is what a real exploit looks like, and it is a different statement from most of what circulated that week.
The third result is the one I consider the most valuable, because it was mine. The public root-cause narrative for one exploitation primitive was wrong in a specific way, and correcting it mattered: session.upload_progress.cleanup, on by default, purges the poisoned upload-progress keys at request end, which is why the most-copied session-file chain fails even in its own purpose-built vulnerable lab: thousands of sprayed session files, zero payload persistence, zero output. Building an independent chain against stock configuration produced the opposite outcome: five out of five in one to two seconds. Two additional paths survive even a fully patched runtime under realistic configurations, which is the part of the work I am deliberately not detailing here.
Where the evidence stops
There was also a bounded, authorized assessment against a real production deployment. Remote detection probes (the same logic as the official Nuclei template, co-authored by the original researcher) produced the memory-exhaustion signature consistently. In plain terms: an unauthenticated attacker can crash PHP workers at will on an unpatched host, a working remote denial-of-service primitive. Full remote code execution was proven against a matching lab build of the host's PHP version, and explicitly not confirmed against the live system. That distinction is the entire point of the exercise: the honest report says exactly how far the evidence goes, and no further.
What operators can do
The defender guidance that survived the week is short. Set session.upload_progress.enabled = where nothing needs it, which is almost everywhere. Cap request body size at the edge for non-upload routes. Treat memory_limit and max_multipart_body_parts as security boundaries, not tuning knobs. Upgrade past the fixed versions, but do not use the version number as a substitute for checking the feature state, because the scanner signals can be ambiguous on patched builds with low memory limits. And when the next scare arrives, remember which questions actually needed answering: not “is it fake”, but “does it succeed where it should, fail where it should, and what exactly did it prove on my systems.”
