Partially overwritten session files can lead to remote code execution
CVE-2026-126714Published 19 Nov 2026, 14:43 UTC
Real-world risk
4.3/ 10Medium
Schedule in the normal cycle
If the vulnerable configuration applies to you: 9.5
PreliminaryFrom the CVSS vector only · confidence low
CVSS
9.2
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from php)
Partially overwritten session files can lead to remote code execution. The files session save handler, which is the 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, and bytes of an ordinary string can later be unserialized as objects. An attacker who can influence the session data, for example through session upload progress, and interrupt a write at a suitable point may inject objects, which can lead to code execution when the application contains a suitable gadget chain. Session data can also be corrupted. This issue affects 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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| PHPUbiquitous | < 8.2.36; >= 8.3.0, < 8.3.37; >= 8.4.0, < 8.4.28; >= 8.5.0, < 8.5.13 | 8.2.36, 8.3.37, 8.4.28, 8.5.13 |
What to do
Update to a fixed version: 8.2.36, 8.3.37, 8.4.28, 8.5.13.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Public proof of concept on GitHub
EPSS 31.6% chance of exploitation in 30 days (percentile 98), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T3: Public proof of concept0.950
- 10 × impact 1 × prerequisites 0.45 × threat 0.954.275
- Rounded to one decimal between 0.1 and 104.3
Exploitation and evidence timeline
- 19 Nov 2026 Published
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Risk 4.3 (cvss fallback)
Weakness
CWE-367, CWE-662
References
- https://github.com/php/php-src/security/advisories/GHSA-fm2m-fjf5-v3cpvendor-advisory
- https://github.com/semgrep/detection-scripts/pull/14
- https://depthfirst.com/phpaftershell
- https://bugzilla.suse.com/show_bug.cgi?id=1290690
- https://ubuntu.com/security/CVE-2026-126714
- https://access.redhat.com/security/cve/cve-2026-126714
- CVE-2026-126714 on CVE.org