PHP2Shell: two PHP remote code execution bugs fixed, PHP since 5.4 affected
What happened next
PHP fixed two remote code execution[1] bugs on October 21: CVE-2026-109618 and CVE-2026-109619, both rated CVSS[2] v4.0 9.2 and present in every unpatched PHP since version 5.4. The flaws sit in the PHP engine, so Magento, Shopware and WooCommerce stores are affected even when their own code is clean, and the bugs cannot be fixed from within store code. The exploit tool PHP2Shell, credited to Calif, combines both bugs into a single attack that needs no login; Calif reported code execution on Magento 2.4.9, WordPress 7.1.2, Drupal 11.4.3, Joomla 6.1.4, MediaWiki 1.46.2, Roundcube 1.7.4, phpMyAdmin 5.2.3, Nextcloud 35.0.1, Laravel 13.11, Symfony 8.1 and WHMCS. Cloudflare reported early attacks at 07:43 UTC on October 21, before the 14:00 UTC release, but mass exploitation now looks less likely than first expected.
An attack needs specific knowledge of the target server and specific conditions on it, and nobody has shown a single request that works against any vulnerable server, as the attack waves after Log4Shell and Shellshock did. Public proof-of-concept exploits do not work against a default PHP installation; most need the target application to have a local file inclusion[3] bug. Several Dutch sites, including Tweakers, the House of Representatives, the NCSC and Security.NL, went offline as a precaution on October 21.
Both bugs are use-after-free[4] flaws: a fatal error during a request, typically out-of-memory when a request crosses the memory_limit, interrupts native PHP code before it cleans up, and a later request or a reused worker treats the freed memory as live data. CVE-2026-109618 can also disclose server memory on its own: PHP's upload-progress handler can return freed worker memory, which may contain passwords, session tokens, API keys and TLS private keys from other requests, to the client in a PHPSESSID response cookie, even when the application never calls session_start(). Fixed releases are 8.2.35, 8.3.36, 8.4.27 and 8.5.12, and temporary mitigations include blocking multipart/form-data requests in the web server and disabling session upload progress, though PHP core developer Gina Peter Banyard warned that turning off session upload progress alone is not enough.
Sources
-
JPsansec.io
PHP2Shell: PHP RCE (CVE-2026-109618, CVE-2026-109619)




