PHP Issues Emergency Patches for Critical PHP2Shell RCE Flaws
The PHP security team is shipping emergency patches for two critical remote code execution vulnerabilities, tracked as CVE-2026-109618 and CVE-2026-109619 and collectively named PHP2Shell. Security researchers from Calif, OpenAI, and Wiz discover the unauthenticated flaws, which affect all PHP installations serving web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP, and LiteSpeed. The team considers the risk highest for mod_php, where an unauthenticated request can trigger the attack before any application code runs.
Both flaws stem from the same underlying problem: PHP can leave its memory corrupted when a request ends abnormally. CVE-2026-109618 allows attackers to achieve remote code execution as the web worker account through a chain of weaknesses causing out-of-memory corruption. CVE-2026-109619 exploits stale global state to enable unauthenticated heap use-after-free, memory disclosure, and remote code execution with the web worker's privileges.
Admins are urged to install PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35 as soon as possible, and to migrate to a fixed release if running PHP 7 or earlier. PHP core developer Gina Peter Banyard warns that no mitigations fully block potential attacks, making the official patches the only permanent defense. The team also provides minimal source backports for PHP 7.4, 8.0, and 8.1 for those building from source or lacking LTS vendor support.