Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.9
CVE-2026-126714: PHP session handling can let attackers run code
CVE-2026-126714 · published 3 days ago
Summary
If a PHP web server writes session data to a file and the write is interrupted, the file can become a mix of new and old data. An attacker who can influence the session content could craft that mix to make the server execute their code. Updating PHP to the latest version (or applying the security patch) fixes the problem.
What to do
- Update debian php8.4 to version 8.4.28-1~deb13u1.
- Update debian php8.2 to version 8.2.36-1~deb12u1.
- Update php83 to version 8.3.37-r0.
- Update php84 to version 8.4.28-r0.
- Update php85 to version 8.5.13-r0.
- Update bellsoft php83 to version 8.3.37-r0.
- Update php group php to version 8.2.36 or later.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| – | php group | php | < 8.2.36 |
| Debian:12 | debian | php8.2 |
< 8.2.36-1~deb12u1 Fix: upgrade to 8.2.36-1~deb12u1
|
| Debian:13 | debian | php8.4 |
< 8.4.28-1~deb13u1 Fix: upgrade to 8.4.28-1~deb13u1
|
| Debian:14 | debian | php8.4 | All versions |
| Alpine:v3.24 | – | php83 |
< 8.3.37-r0 Fix: upgrade to 8.3.37-r0
|
| Alpine:v3.24 | – | php84 |
< 8.4.28-r0 Fix: upgrade to 8.4.28-r0
|
| Alpine:v3.24 | – | php85 |
< 8.5.13-r0 Fix: upgrade to 8.5.13-r0
|
| Alpaquita:stream | bellsoft | php83 |
>= 8.3.4-r2, < 8.3.37-r0 Fix: upgrade to 8.3.37-r0
|
| Alpaquita:25 | bellsoft | php83 |
>= 8.3.21-r0, < 8.3.37-r0 Fix: upgrade to 8.3.37-r0
|
Original advisory text
BELL-CVE-2026-126714
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.
References
- https://github.com/php/php-src/security/advisories/GHSA-fm2m-fjf5-v3cp
- https://bugzilla.suse.com/show_bug.cgi?id=1290690
- https://depthfirst.com/phpAfterShell
- https://github.com/semgrep/detection-scripts/pull/14
- https://security-tracker.debian.org/tracker/CVE-2026-126714 Vendor Advisory
- https://ubuntu.com/security/CVE-2026-126714
- https://security.alpinelinux.org/vuln/CVE-2026-126714 Vendor Advisory
- https://docs.bell-sw.com/security/cves/CVE-2026-126714 Vendor Advisory
- https://access.redhat.com/security/cve/cve-2026-126714
- https://depthfirst.com/phpaftershell
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker full control
Severity
9.9
Critical
Type
CWE-367Time-of-check Time-of-use (TOCTOU) Race Condition
CWE-662Improper Synchronization
Timeline
Published19 Nov 2026
Updated22 Nov 2026
First seen19 Nov 2026
Sources
CVE-2026-126714 · NVD
CVE-2026-126714 · MITRE
DEBIAN-CVE-2026-126714 · OSV
ALPINE-CVE-2026-126714 · OSV
BELL-CVE-2026-126714 · OSV
Track software like this
Free during beta