# CVE-2026-126714: Partially overwritten session files can lead to remote code execution

- Severity: Critical 9.2 (CVSS:4.0, scored by php) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 31.6%, higher than 98% of CVEs (2026-12-01)
- Published: 2026-11-19T14:43:19.430Z
- Modified: 2026-11-27T06:56:00.479Z
- Also known as: BIT-LIBPHP-2026-126714, BIT-PHP-2026-126714, BIT-PHP-MIN-2026-126714, GHSA-fm2m-fjf5-v3cp
- Weaknesses: CWE-367, CWE-662
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: php

## 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 before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.

(As written by CVE List.)

## Affected

- PHP Group PHP: 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
- libphp (Bitnami): from 8.2.0 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
- php (Bitnami): from 8.2.0 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
- php-min (Bitnami): from 8.2.0 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

## Every score

- php: CVSS:4.0 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`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/php/php-src/security/advisories/GHSA-fm2m-fjf5-v3cp> (vendor-advisory, web)
- <https://github.com/semgrep/detection-scripts/pull/14> (web)
- <https://depthfirst.com/phpaftershell> (web)
- <https://bugzilla.suse.com/show_bug.cgi?id=1290690> (web)
- <https://ubuntu.com/security/CVE-2026-126714> (web)
- <https://access.redhat.com/security/cve/cve-2026-126714> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-126714> (web)

## Sources

- CVE List: [CVE-2026-126714](https://www.cve.org/CVERecord?id=CVE-2026-126714), CVE Terms of Use, modified 2026-11-22
- NVD: [CVE-2026-126714](https://nvd.nist.gov/vuln/detail/CVE-2026-126714), Public domain, modified 2026-11-22
- Bitnami Vulnerability Database: [BIT-LIBPHP-2026-126714](https://osv.dev/vulnerability/BIT-LIBPHP-2026-126714), Apache-2.0, modified 2026-11-27
- Bitnami Vulnerability Database: [BIT-PHP-2026-126714](https://osv.dev/vulnerability/BIT-PHP-2026-126714), Apache-2.0, modified 2026-11-27
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2026-126714](https://osv.dev/vulnerability/BIT-PHP-MIN-2026-126714), Apache-2.0, modified 2026-11-27

---

Page: https://cve.day/CVE-2026-126714 · Whole record: https://cve.day/CVE-2026-126714.json · Rebuilt by cve.day 2026-11-27T07:07:38.666Z
