What happened
CISA issued an alert on 21 October 2026 about two critical vulnerabilities in PHP, known as php2shell. Both allow remote code execution without authentication on servers that use PHP to answer web requests: mod_php (the highest risk), PHP-FPM, php-cgi, FrankenPHP and LiteSpeed.
A crafted request, such as a multipart body that pushes PHP into running out of memory, corrupts memory in a PHP worker. php.net says there are no complete mitigations short of updating.
CISA added both CVEs to its Known Exploited Vulnerabilities catalog on 26 October 2026, so attacks are already happening, and it reports them being chained with a Linux kernel flaw (CVE-2026-46300) to get root. Because the flaw is in PHP rather than in an application, it doesn't matter how well your store or CMS is patched.
What to do
- Update PHP to the latest release for your branch (8.5.13, 8.4.28, 8.3.37 or 8.2.36) on every server, then restart PHP-FPM or your web server so the new binary is actually running.
- On PHP 8.1 or older there is no fix. CISA's advice is to take the system offline until it runs a supported, patched PHP.
- Install your distribution's kernel update and reboot, so a hacked PHP process can't be turned into root (CVE-2026-46300).
- Look for signs you were hit before you patched: PHP workers starting shells or downloading tools, and PHP files you don't recognise in upload and cache folders.
