CVE Vulnerabilities

CVE-2026-126714

Time-of-check Time-of-use (TOCTOU) Race Condition

Published: Nov 19, 2026 | Modified: Nov 22, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
8.1 CRITICAL
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM

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.

Weakness

The product checks the state of a resource before using that resource, but the resource’s state can change between the check and the use in a way that invalidates the results of the check.

Affected Software

NameVendorStart VersionEnd Version
Red Hat Enterprise Linux 10RedHatphp8.4-0:8.4.28-1.el10_3*
Red Hat Enterprise Linux 10.2 Extended Update SupportRedHatphp8.4-0:8.4.28-1.el10_2*
Red Hat Enterprise Linux 8RedHatphp:7.4-8100020261119125714.f7998665*
Red Hat Enterprise Linux 9.8 Extended Update SupportRedHatphp:8.3-9080020261120133305.9*
Red Hat Enterprise Linux 9.8 Extended Update SupportRedHatphp:8.2-9080020261120141350.9*
Php5Ubuntuesm-infra-legacy/trusty*
Php7.0Ubuntuesm-infra-legacy/xenial*
Php7.2Ubuntuesm-infra/bionic*
Php7.4Ubuntuesm-infra/focal*
Php8.1Ubuntujammy*
Php8.3Ubuntunoble*
Php8.5Ubuntudevel*
Php8.5Ubunturesolute*
Php8.5Ubuntustonking*

Potential Mitigations

References