home / blog
2026-11-20 · critical
CVE-2026-126714: Critical PHP Vulnerability
Critical vulnerability (CVSS 9.2) in PHP: non-atomic session file handling allows object injection and RCE.

CVE-2026-126714 relates to non-atomic session file handling in PHP. When session data is written, the session file handler (default) writes updated session data into the existing session file without first clearing it. If a write is interrupted, the file can contain the beginning of the new session followed by the end of the old one, allowing an attacker to influence session data and inject objects that can lead to remote code execution.
This vulnerability is classified as critical with a CVSS score of 9.2. It was officially reported on November 19, 2026 through the NVD. Public repositories have been found that claim to contain exploits for this vulnerability, demonstrating that proof-of-concept exploits already exist.
The most effective defense is to immediately update PHP to patched versions: 8.2.36 or later, 8.3.37 or later, 8.4.28 or later, or 8.5.13 or later. For applications that cannot be immediately updated, it is possible to disable the upload progress functionality in sessions and implement additional controls on session data serialization and deserialization.
At a glance
- What
- Non-atomic session file handling that can lead to remote code execution
- Severity
- Critical (CVSS 9.2)
- Affected versions
- PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13
- Fix
- Update PHP to versions 8.2.36+, 8.3.37+, 8.4.28+ or 8.5.13+
- Status
- Published on 2026-11-19
- Action
- Immediately update PHP to patched versions
Sources: NVD, CVE-2026-126714