Summary
CVE-2026-109619 is a critical remote code execution (RCE) vulnerability in the PHP core, the companion to CVE-2026-109618 in the "php2shell" pair. The PHP security team rates it 9.2 (CVSS v4.0). PHP shipped the fix on October 21, 2026. Public proof-of-concept code appeared on GitHub within hours of the release, so unpatched servers should be treated as exploitable now.
Technical details
-
Root cause: reuse of stale request-scoped state (use-after-free, CWE-416). Request-owned internal state can survive after its backing memory has been freed; a later request handled by the same worker can use that stale state before normal initialization resets it.
-
Trigger conditions: several paths leave state published after a request’s heap is freed, including fatal errors (parse or compile failures, failed
require, "maximum execution time exceeded"), out-of-memory interruptions, diagnostics raised while applying INI settings, fatal-error backtraces on PHP 8.5, and the session upload-progress path. Session upload progress is one path among several, not the sole trigger. -
Attack vector: network (remotely exploitable), unauthenticated.
-
Impact: remote code execution in the PHP worker. Risk is highest for Apache with mod_php; the confirmed demonstrated exploit uses the PHP 8.5 fatal-error-backtrace path.
-
The flaw is in PHP itself, so it cannot be fixed in application code.
Affected software
-
All PHP releases from 5.4 onward, up to and including 8.2.34, 8.3.35, 8.4.26 and 8.5.11.
-
Fixed in PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12, with source backports for 7.4, 8.0 and 8.1.
-
End-of-life branches (8.1 and older) receive no official upstream fix; use a distribution backport or migrate to a supported branch.
Severity
- CVSS v4.0 base score: 9.2 (Critical), vector
AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SA:H, as rated by the PHP security team. Credited to Wiz, OpenAI, Calif.io and PHP core maintainers.
Mitigation and recommended actions
-
Immediate: upgrade to 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12, or your distribution’s backport (for example Ubuntu USN-8948-1). Upgrading is the only complete fix.
-
Inventory internet-facing hosts that run PHP. IONIX flags assets that disclose PHP in their HTTP response headers as potentially affected.
-
If you cannot patch immediately, apply the interim measures from PHP’s advisory, each of which closes only part of the attack surface: set
session.upload_progress.enabled = 0inphp.ini, a pool, or server config (not viaini_set()or a per-request.user.ini) and restart workers; on PHP 8.5 setfatal_error_backtraces = 0; prefer startup configuration over per-request overrides and remove obsolete directives; and keep attacker-reachable requests from hitting fatal errors or the execution timeout.pm.max_requests = 1reduces, but does not remove, worker reuse exposure. -
Migrate end-of-life PHP versions to a supported branch.
-
For WAF mitigations, vendor built-in rulesets in blocking mode can help mitigate the risk (e.g. Cloudflare Managed Ruleset and Akamai Adaptive Security Engine rules).

