Partially overwritten session files can lead to remote code execution
Summary
| CVE | CVE-2026-126714 |
|---|---|
| State | PUBLISHED |
| Assigner | php |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-19 15:17:26 UTC |
| Updated | 2026-11-19 18:18:04 UTC |
| Description | 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 8.2.* before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13. |
Risk And Classification
Primary CVSS: v4.0 9.2 CRITICAL from [email protected]
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Problem Types: CWE-367 | CWE-662 | CWE-367 CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition | CWE-662 CWE-662 Improper Synchronization
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | [email protected] | Secondary | 9.2 | CRITICAL | 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/E:X/C... |
| 4.0 | CNA | CVSS | 9.2 | CRITICAL | 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 |
CVSS v4.0 Breakdown
Attack Vector
NetworkAttack Complexity
LowAttack Requirements
PresentPrivileges Required
NoneUser Interaction
NoneConfidentiality
HighIntegrity
HighAvailability
HighSub Conf.
NoneSub Integrity
NoneSub Availability
NoneCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/php/php-src/security/advisories/GHSA-fm2m-fjf5-v3cp | [email protected] | github.com | |
| depthfirst.com/phpAfterShell | af854a3a-2127-422b-91ae-364da2661108 | depthfirst.com | |
| github.com/semgrep/detection-scripts/pull/14 | af854a3a-2127-422b-91ae-364da2661108 | github.com | |
| bugzilla.suse.com/show_bug.cgi | af854a3a-2127-422b-91ae-364da2661108 | bugzilla.suse.com | |
| ubuntu.com/security/CVE-2026-126714 | af854a3a-2127-422b-91ae-364da2661108 | ubuntu.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Leo Lin (en)
CNA: Asahi (en)
CNA: Ilija Tovilo (en)
CNA: Arnaud Le Blanc (en)
There are currently no legacy QID mappings associated with this CVE.