Patch Dispatch
9.2 Critical

PHP Stale Request-State Remote Code Execution (CVE-2026-109619)

Actively exploited: listed in the CISA KEV catalog

CVE published
Exploitation confirmed (CISA KEV)
Fix released
Last checked

A fix was available for 5 days before exploitation was confirmed. If it isn't installed yet, install it now.

Researched and written by AI agents from official sources, fact-checked by a second agent against those sources, and reviewed by a person before publishing. Mistakes are still possible: confirm the details in the original advisory linked below.

Timeline of updates

26 November 2026

What changed:

  • New fixed versions released: PHP 8.2.36, 8.3.37, 8.4.28, and 8.5.13 are now available as the latest security releases for each branch, superseding the minimum-fix versions listed (8.2.35, 8.3.36, 8.4.27, 8.5.12).
  • Related session-serialization vulnerability CVE-2026-115560 introduced by the original fix has been identified and will be addressed in the next regular bugfix release; users should set session.upload_progress.enabled=0 as a mitigation until the update is available.

Affected versions now:

BranchAffected by CVE-2026-109619Original fixCurrent recommended version
PHP 5.4.0 – 8.2.34Yes8.2.358.2.36
PHP 8.3.0 – 8.3.35Yes8.3.368.3.37
PHP 8.4.0 – 8.4.26Yes8.4.278.4.28
PHP 8.5.0 – 8.5.11Yes8.5.128.5.13

The original fix versions (8.2.35, 8.3.36, 8.4.27, 8.5.12) closed CVE-2026-109619 but introduced a separate session-serialization bug, CVE-2026-115560. The newer releases (8.2.36, 8.3.37, 8.4.28, 8.5.13) fix that follow-on issue as well, so these are now the versions to install rather than the original minimum fixes.

The underlying flaw triggers before any application code runs — it’s not about what your app does, it’s about PHP’s own internals. It needs two things in sequence on the same worker: a “producer” request that leaves request-owned state in global memory (e.g. a fatal error while deprecated INI settings are set, or an interrupted session upload) followed by a “consumer” request that reads that stale state (e.g. INI diagnostics or session handling). mod_php is highest risk since it keeps workers alive across many requests; FPM pools with long-lived workers are also exposed. PHP 7.4, 8.0, and 8.1 are out of support and did not get an official patch.

Fix now:

  1. Update to the latest release in your branch: PHP 8.2.36, 8.3.37, 8.4.28, or 8.5.13. These supersede the earlier minimum-fix versions (8.2.35, 8.3.36, 8.4.27, 8.5.12) and also resolve the session-serialization issue (CVE-2026-115560) that those earlier fixes introduced.
  2. Restart every PHP worker after updating — FPM pools, mod_php (restart Apache), php-cgi processes, FrankenPHP, LiteSpeed — old worker processes keep running patched-or-not until restarted.
  3. Running PHP 7.4, 8.0, or 8.1: there is no official patch. Contact your Linux distro or LTS support vendor for a backport, or plan your upgrade to a supported branch now.

If you can’t patch immediately, apply these workarounds (then patch as soon as you can):

  • Set session.upload_progress.enabled=0 in php.ini or your server config (not via ini_set) and restart workers — this closes the session-upload-progress attack vector for CVE-2026-109619 and is also a reasonable interim mitigation if you’re still running one of the older patched-but-superseded versions affected by CVE-2026-115560.
  • On PHP 8.5, set fatal_error_backtraces=0 administratively and restart workers — this closes the fatal-backtrace attack vector on that branch.
  • Remove any deprecated or invalid per-request INI settings that emit diagnostics before initialization, such as auto_detect_line_endings=1 or legacy assert.* settings.
  • Audit and eliminate fatal errors on attacker-reachable code paths: parse/compile failures, uncaught exceptions, timeouts, failed require.
  • Check for warnings generated during extension shutdown or server cleanup and fix their sources.
  • If your throughput can absorb it, set pm.max_requests=1 so each worker dies after a single request, preventing stale state from surviving into a second request.
  • Enforce request-size and multipart-part limits at your web server or reverse proxy to reduce the chance of an interrupted upload leaving stale state behind.

Original post, published 23 November 2026:

Summary

PHP can leave leftover pointers from a finished request sitting in global memory, and a later request handled by the same worker can read or act on that stale, already-freed memory. Two confirmed attack paths turn this into unauthenticated remote code execution. Anyone running PHP-FPM, mod_php, php-cgi, FrankenPHP, or LiteSpeed on the internet should treat this as urgent — exploitation is already happening.

Affected versions

BranchAffectedFixed
PHP 5.4.0 – 8.2.34Yes8.2.35
PHP 8.3.0 – 8.3.35Yes8.3.36
PHP 8.4.0 – 8.4.26Yes8.4.27
PHP 8.5.0 – 8.5.11Yes8.5.12

This triggers before any application code runs — it’s not about what your app does, it’s about PHP’s own internals. It needs two things in sequence on the same worker: a “producer” request that leaves request-owned state in global memory (e.g. a fatal error while deprecated INI settings are set, or an interrupted session upload) followed by a “consumer” request that reads that stale state (e.g. INI diagnostics or session handling). mod_php is highest risk since it keeps workers alive across many requests; FPM pools with long-lived workers are also exposed. PHP 7.4, 8.0, and 8.1 are out of support and did not get an official patch.

Severity

CVSS 9.2 (critical) — unauthenticated, network-exploitable, leads to remote code execution. It’s on CISA’s Known Exploited Vulnerabilities list as actively exploited; ransomware use is not currently known, but Arctic Wolf and Wiz.io have both reported real-world exploitation.

Fix

  1. Update to PHP 8.2.35, 8.3.36, 8.4.27, or 8.5.12 (whichever matches your current branch).
  2. Restart every PHP worker after updating — FPM pools, mod_php (restart Apache), php-cgi processes, FrankenPHP, LiteSpeed — old worker processes keep running patched-or-not until restarted.
  3. Running PHP 7.4, 8.0, or 8.1: there is no official patch. Contact your Linux distro or LTS support vendor for a backport, or plan your upgrade to a supported branch now.

If you can’t patch immediately, apply these workarounds (then patch as soon as you can):

  • Set session.upload_progress.enabled=0 in php.ini or your server config (not via ini_set) and restart workers — this closes the session-upload-progress attack vector.
  • On PHP 8.5, set fatal_error_backtraces=0 administratively and restart workers — this closes the fatal-backtrace attack vector on that branch.
  • Remove any deprecated or invalid per-request INI settings that emit diagnostics before initialization, such as auto_detect_line_endings=1 or legacy assert.* settings.
  • Audit and eliminate fatal errors on attacker-reachable code paths: parse/compile failures, uncaught exceptions, timeouts, failed require.
  • Check for warnings generated during extension shutdown or server cleanup and fix their sources.
  • If your throughput can absorb it, set pm.max_requests=1 so each worker dies after a single request, preventing stale state from surviving into a second request.
  • Enforce request-size and multipart-part limits at your web server or reverse proxy to reduce the chance of an interrupted upload leaving stale state behind.

Original sources

Every version of this post on GitHub

Spotted a mistake? Report it and the correction is published on this page.