On October 21, 2026, the PHP Group released emergency security updates addressing two critical unauthenticated Remote Code Execution (RCE) vulnerabilities: CVE-2026-109618 and CVE-2026-109619 (CVSS v4.0 score: 9.2, tracked under exploit toolchains dubbed php2shell).
1. Technical Root Cause
- CVE-2026-109618 (OOM Handling Flaw): When PHP hits
memory_limitmid-request initialization (such as multipart file uploads), it aborts vialongjmp(), leaving partially initialized structures that request shutdown cleanup treats as valid memory. - CVE-2026-109619 (Stale Global State): Request-owned internal state can outlive its freed backing memory, allowing subsequent requests on the same worker (PHP-FPM, Apache
mod_php, FrankenPHP, LiteSpeed) to exploit stale references.
2. Patched PHP Releases
Run php -v across your production servers and upgrade immediately to:
- PHP 8.5 โ 8.5.12
- PHP 8.4 โ 8.4.27
- PHP 8.3 โ 8.3.36
- PHP 8.2 โ 8.2.35
3. Temporary Workarounds
; Temporary php.ini hardening until the binary patch is deployed
session.upload_progress.enabled = Off
post_max_size = 16M
upload_max_filesize = 8M
Updating the PHP runtime and restarting worker processes remains the only complete fix.