On 16 November 2026, AWS published a guide on moving legacy PHP onto a patched runtime after PHP2Shell. The useful part is the decision it forces on anyone still running PHP 8.1 or older.
A forced security upgrade is the cheapest moment to decide where the application goes next: stay on PHP, or move to Java 21 / Spring Boot. Upgrading PHP is a valid answer for many teams. Skipping the decision is the expensive one.
What PHP2Shell actually is
PHP2Shell is the name used for two critical bugs in the PHP engine, CVE-2026-109618 and CVE-2026-109619. AWS gives both a CVSS v4.0 score of 9.2, because either one can let an unauthenticated caller run code on a server that handles PHP requests. CISA uses the same name and CVE IDs, and on 26 October 2026 it added both to its Known Exploited Vulnerabilities catalog.
The PHP project fixed the bugs on 21 October 2026, in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. The PHP Foundation and php.net confirm those CVE IDs and releases.…