PHP — Critical Patches Released for Seven Remote Code Execution and Memory Flaws (CVE-2026-115560)

Publication date: November 19, 2026
Category: Vulnerability / Web Security

Introduction

The PHP Foundation has released critical security updates to address multiple severe vulnerabilities within the core interpreter, which could be exploited by remote threat actors to achieve arbitrary code execution (RCE). The advisory covers complex flaws involving insecure data deserialization, use-after-free memory errors, session storage race conditions, and HTTP request smuggling vectors. Among the addressed issues, CVE-2026-115560 stands out alongside other critical vectors analyzed by security researchers, requiring system administrators to deploy corrective patches immediately.

What is PHP Session Infrastructure and Memory Management? (General Analysis)

PHP is the predominant server-side scripting engine powering the modern web. To maintain state across stateless HTTP requests, PHP relies on internal session storage mechanisms and dynamic memory management. Recent vulnerabilities expose architectural weaknesses in how the interpreter processes input streams, handles request shutdown routines, and reuses global states or memory buffers.

The resolved vulnerabilities present an extreme risk as several vectors allow unauthenticated remote code execution. Official CVSS v4.0 vectors confirmed by the NVD database for key CVEs include:

  • CVE-2026-115560: CVSS Score: 9.2 (CRITICAL). Official Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N. CWE Classification: CWE-20 (Improper Input Validation), CWE-502 (Deserialization of Untrusted Data).
  • CVE-2026-129182: CVSS Score: 9.2 (CRITICAL). Official Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N. CWE Classification: CWE-416 (Use After Free), CWE-459 (Incomplete Cleanup).
  • CVE-2026-109619: CVSS Score: 9.2 (CRITICAL). Official Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N. CWE Classification: CWE-416, CWE-755, CWE-824, CWE-1325 (Listed in CISA KEV catalog).
  • CVE-2026-126714 (phpAfterShell): CVSS Score: 9.2 (CRITICAL). Official Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N. CWE Classification: CWE-367 (Time-of-Check Time-of-Use), CWE-662 (Improper Synchronization).

How Does It Work? (Technical Analysis)

The fixed security flaws exploit different subsystems within the PHP interpreter:

  • Session Serializer Mismatch (CVE-2026-115560): When session upload progress is enabled, attacker-controlled data is stored using a specific session serializer. If a subsequent read processes the same session key under a different serializer —due to runtime configuration changes— internal bytes are unintentionally passed to the unserializer, enabling object injection and code execution if a suitable gadget chain exists.
  • TOCTOU Conditions in Session Files (CVE-2026-126714 / phpAfterShell): The default file-based session save handler writes updated session data without first truncating the existing file (ftruncate/pwrite). An interrupted write results in a malformed session file combining old and new data fragments, allowing ordinary strings to be deserialized as objects upon invoking session_start().
  • HTTP Request Smuggling (CVE-2026-129289): PHP fails to discard unread portions of an HTTP request body during request shutdown when applications open php://input without reading it to completion. In front-end architectures that reuse persistent backend connections (such as Nginx with fastcgi_keep_conn on or Apache with enablereuse=on), leftover bytes can be parsed as a new FastCGI request, allowing attackers to forge parameters like SCRIPT_FILENAME.
  • Use-After-Free and Global State Errors (CVE-2026-129182, CVE-2026-129474, CVE-2026-129481, CVE-2026-129496, CVE-2026-129291): Critical flaws where temporary global states, fatal error backtraces, timezone caches, or stream destructors retain pointers to freed memory during request shutdowns or magic method exceptions (__call, __callStatic), leading to memory corruption and potential code execution in reused worker processes.

Affected Systems / Environments

These vulnerabilities impact multiple active PHP branches prior to applying the corresponding patches.

CVE Category (CWE) Impact CVSS Vector (summarized)
CVE-2026-115560 CWE-20, CWE-502 RCE / Session Corruption 9.2 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H
CVE-2026-129182 CWE-416, CWE-459 RCE / Memory Corruption 9.2 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H
CVE-2026-109619 CWE-416, CWE-755 RCE / Invalid Global State 9.2 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H
CVE-2026-126714 CWE-367, CWE-662 RCE / TOCTOU Deserialization 9.2 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H
CVE-2026-129289 CWE-444, CWE-670 RCE / PHP-FPM Request Smuggling 9.2 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H
CVE-2026-129474 CWE-416 RCE / Magic Method UAF 9.2 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H
CVE-2026-129481 CWE-416, CWE-459 Worker Crash / Session UAF 9.2 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H
CVE-2026-129496 CWE-416, CWE-459 Timezone Cache UAF 9.2 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H
CVE-2026-129291 CWE-416 Local Privilege Escalation 8.8 AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H

Vulnerable versions affected:

  • PHP 8.2.* branches prior to 8.2.36
  • PHP 8.3.* branches prior to 8.3.37
  • PHP 8.4.* branches prior to 8.4.28
  • PHP 8.5.* branches prior to 8.5.13

Mitigation and Detection

Remediation

System administrators and development teams must immediately update runtime environments to the patched versions released by the PHP Foundation:

  • PHP 8.2.36
  • PHP 8.3.37
  • PHP 8.4.28
  • PHP 8.5.13
  • PHP 8.6.0

As an interim mitigation if immediate patching is not feasible, administrators should disable session upload progress (session.upload_progress.enabled = Off) and review front-end server persistence settings (such as Nginx and Apache) to prevent raw connection reuse toward vulnerable backends.

Detection

Incident response teams should monitor error logs for anomalies in PHP-FPM worker processes, unexpected segmentation faults, and anomalous HTTP traffic patterns targeting session endpoints or incomplete input streams.

“The simultaneous discovery of use-after-free memory corruption flaws and deserialization primitives in core language subsystems highlights the necessity of maintaining strict dependency management and continuous patching policies across PHP-based web infrastructures.”

Wrapping Up

The disclosure and remediation of this critical set of flaws in PHP emphasize the risks associated with complex session state handling and backend communication protocols. With multiple CVEs reaching critical CVSS scores of 9.2 and featuring unauthenticated remote code execution vectors, updating to versions 8.2.36, 8.3.37, 8.4.28, 8.5.13 or higher is a paramount priority to ensure the stability and security of global web deployments.

References