CVE-2026-126714PHP ext-session >= 8.2.0, Time-of-check Time-of-use (TOCTOU) Race Condition
NVD
Vulnerability Summary
Partially overwritten session files can lead to remote code execution. PHP's file-based session handler can leave a session file containing parts of two different serialized sessions if a write is interrupted. An attacker who can influence the session contents and interrupt a replacement write may be able to make PHP deserialize attacker-controlled objects when the session is next opened. A suitable object gadget chain in the application can turn this into remote code execution. This affects the files session save handler, which is PHP's default. The issue is not limited to session upload progress or PHP 8.6.
CVSS v4.0 Base Metrics — Score 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:NAttack VectorNetwork
Attack ComplexityLow
Attack RequirementsPresent
Privileges RequiredNone
User InteractionNone
Confidentiality (Vulnerable System)High
Integrity (Vulnerable System)High
Availability (Vulnerable System)High
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Affected & Patched Versions
- PHP ext-session >= 8.2.0, < 8.2.36
- PHP ext-session >= 8.3.0, < 8.3.37
- PHP ext-session >= 8.4.0, < 8.4.28
- PHP ext-session >= 8.5.0, < 8.5.13
- PHP 8.2.36
- PHP 8.3.37
- PHP 8.4.28
- PHP 8.5.13
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is critical.
- Check whether you run PHP ext-session >= 8.2.0, and which version.
- Update to a patched version listed above, then confirm the new version.
- Until you can update, follow the vendor workaround: As a temporary measure, disable session.upload_progress.enabled administratively if the feature is not needed, and limit the amount of untrusted data stored in sessions. Disabling upload progress removes that input path but does not fix applications that independently store attacker-controlled session data.
- Until you can update, follow the vendor workaround: A session storage backend that replaces records atomically can avoid this file-write defect. The PHP update remains the recommended fix for applications using the built-in files handler.
Timeline
- Nov 19, 2026Published
- Nov 19, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new PHP ext-session >= 8.2.0, CVEsYou are reading CVE-2026-126714. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsRelated Coverage
External References
Data last checked: Nov 19, 2026 14:43 UTC