The PHP2Shell story, plainly told
On 21 October 2026 the PHP project patched two linked flaws, CVE-2026-109618 and CVE-2026-109619, which security researchers named PHP2Shell. As the official advisories describe it, a crafted multipart/form-data request drives PHP's parser to run out of memory while it reads the body — a body well under the default 8 MB limit can still hold thousands of tiny parts, deeply nested names, or a part with a flood of headers. PHP handles running out of memory with a longjmp that can leave the half-built request in a corrupt state, which the advisories say can be turned into remote code execution without logging in.
The official fix ships for PHP 8.2 and newer; older branches get no official patch. PHP 8.1 and older still run a very large share of the web.
What we verified
We ran the PHP2Shell exploit against a vulnerable PHP build with Howdah loaded in its default configuration, and it did not land. Howdah 1.6 added the two protections this needs: request-parsing limits that refuse the amplifying shapes before PHP runs out of memory, and an out-of-memory backstop that exits the worker cleanly if it ever does.
We also measured the shape directly: PHP's own max_input_vars and max_file_uploads keep the flood small on a default box; with those caps raised, the same shape used 127 to 173 MB against a 128 MB limit, and Howdah's default limits refuse it long before that. See the coverage table, the explainer and the measurements.
Why only a PHP extension can stop it
- PHP reads the whole upload into
$_FILESand$_POSTbefore any PHP script runs, so a firewall written in PHP (for example viaauto_prepend_file) is too late. opcache.preloadruns once when the server starts, never per request.- A network firewall sees bytes on the wire, not how PHP will interpret them.
- A compiled extension runs inside PHP's own upload parser, so it can count parts as PHP reads them and stop the request early.
The incident details above come from public reports. We are checking them against the official advisories (GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp, php.net) and will correct this page if they differ.