CVE-2026-126714: Partially overwritten session files can lead to remote code execution
Advisory generated from the CVE record, CISA, Exploit Observer and VEDAS: what it is, whether it is exploited, who is affected, and how to fix and detect it.
Generated by VEDAS. Scores as of 2026-11-20 18:46 UTC. Rebuilt every few hours from cve-scores, CISA KEV and vedas-signatures. How this works and its limits.
What it is
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.
Description quoted from the CVE record (assigned by php, published 2026-11-19).
Weakness: CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition; CWE-662 Improper Synchronization
How it can be exploited
Exploitable over the network with low attack complexity only when specific conditions are present needing no privileges and no user interaction. Impact: confidentiality high, integrity high, availability high. 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
CISA assessment (SSVC): CISA has no evidence of exploitation. Automatable: yes. Technical impact: total.
Public exploit evidence (Exploit Observer)
Exploit Observer found 1 research write-up naming this CVE.
See all 5 references on Exploit Observer
Live scores
- EPSS
- 0.000
low predicted chance of attack - VEDAS
- 0.449
little exploit evidence - On CISA KEV
- Not listed
- Detection rule
- No public rule yet
Who is affected
| Product | Affected | Not affected |
|---|---|---|
| PHP Group | before 8.2.36 from 8.3.0 before 8.3.37 from 8.4.0 before 8.4.28 from 8.5.0 before 8.5.13 | Not stated |
Version ranges exactly as the CVE record states them. “Before X” means X is the first fixed version.
How to fix it
Fixed versions stated in the CVE record: 8.2.36, 8.3.37, 8.4.28, 8.5.13.
Vendor guidance:
- https://github.com/php/php-src/security/advisories/GHSA-fm2m-fjf5-v3cp (vendor-advisory)
How to detect it
There is no open VEDAS detection rule for this bug yet. It is listed on the detection gaps page if CISA has confirmed attacks.
Advisories on this CVE
- ASEC reports seven critical PHP flaws patched after PHP2Shell (full advisory)
References
Vendor advisories and patches
- https://github.com/php/php-src/security/advisories/GHSA-fm2m-fjf5-v3cp (vendor-advisory)
Other references
- 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
Other databases
Where this comes from
This advisory is generated automatically by VEDAS from: CVE.org record, cve-scores (EPSS and VEDAS), Exploit Observer. Text in quotes is reproduced from the source; everything else is a fixed template filled with source fields. Nothing here is written by a language model. Check the vendor advisory before acting, and read how VEDAS and Exploit Observer work, and their limits.
Supporting partners