I read the PHP2Shell news twice, because almost everything I run touches PHP somewhere. Two critical bugs got emergency patches on 21 October, and both can give an unauthenticated attacker remote code execution.
Both are rated 9.2 out of 10. The CVEs are CVE-2026-109618 and CVE-2026-109619, and the fixed versions are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. PHP 8.1 and older get no upstream updates anymore, so those installs need a backport from the distro or LTS vendor. The PHP team also published minimal source backports for 7.4, 8.0 and 8.1 for people who build from source. mod_php is the setup the team considers most at risk, but PHP-FPM, php-cgi, FrankenPHP and LiteSpeed are affected too.
The scale is what gets me. Palo Alto Networks counted more than 22.6 million internet-facing servers that may be vulnerable. Amazon’s honeypot recorded an exploitation attempt on 17 October, four days before the patches, and Cloudflare also saw early attacks. Cloudflare says its firewall rules are only a stopgap. If you patch late, TechTarget advises keeping your logs from 20 October onward, because a patch does not remove an attacker who is already in.
The Register points at the uncomfortable part: these bugs sat in the core for decades, and AI-assisted researchers (Calif with OpenAI models, and Wiz) found them. I expect more of this from other old code. A third, harder to trigger bug will follow in the next regular release.
I’d start by finding out what PHP version your stuff runs. Nextcloud on my server is a PHP app, so I want to know which PHP its image ships. For a container that is docker exec <container> php -v, and if it is below the fixed version, pull a newer image.
Further reading: Help Net Security: PHP2Shell vulnerabilities patched, BleepingComputer: PHP ships emergency patches for critical PHP2Shell flaws, TechTarget: PHP2Shell, 22M exposed servers at risk, The Register: We shouldn't be surprised about the PHPocalypse
