Skip to main content

PHP EUVDEUVD-2026-130158

| CVE-2026-126714 CRITICAL
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-11-19 php
9.2
CVSS 4.0 · Vendor: php
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach session-enabled PHP app over network
  2. Delivery
    Inject crafted data via session upload progress
  3. Exploit
    Interrupt replacement write at chosen offset
  4. Execution
    Merged file unserializes attacker object on session_start
  5. Impact
    Gadget chain executes code as PHP worker

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
Exploitation Conditions

Requires the files session save handler (PHP's default) to be in use. The attacker must be able to influence stored session data - the advisory names session.upload_progress (multipart uploads) as one path and, independently, any application that stores large user-controlled strings in a session. The attacker must also cause a write to be interrupted at a useful offset; the advisory notes that in threaded PHP builds a hard memory-limit failure in another thread can terminate the process mid-write, providing one way to control where the write stops (reflected as AT:P). Finally, successful RCE requires the hosting application to contain a suitable unserialize gadget chain; without one, the impact is limited to session-data corruption. Limiting factors: the write-interruption requirement, the need for an application gadget chain, and the advisory's note that authentication requirements depend on how the application exposes the affected session operations (so the PR:N in the supplied vector is best-case-for-attacker, not assured). Disabling session.upload_progress.enabled removes that one input path but does not protect applications that independently store attacker-controlled data in sessions.

Impact

Multiple signals point to genuine high priority but with meaningful real-world friction. The CVSS 4.0 base is 9.2 (AV:N/AC:L/AT:P/PR:N/UI:N with VC:H/VI:H/VA:H), and the vuln.today decision label is act_now, reflecting the RCE potential in PHP's default session handler. However, the vector's AT:P (attack requirement present) and the advisory itself encode the real constraints: the attacker must influence session data AND interrupt a replacement write at a precisely useful point AND the hosting application must contain a suitable deserialization gadget chain. These are three independent preconditions, so this is not trivially mass-exploitable despite the critical score. CWE-367/CWE-662 confirm the mechanism is a race/non-atomic-write condition, consistent with AT:P rather than attacker-controlled determinism. No EPSS score was provided and the issue is NOT in CISA KEV; no public exploit or PoC reference is present in the inputs - the two references are vendor/aggregator advisories only. The advisory explicitly notes authentication requirements 'depend on how the application exposes the affected session operations,' which conflicts with the strict PR:N in the supplied vector; PR:N should be read as the worst-case app exposure, not a guarantee of unauthenticated reach. Net: a real, high-urgency patching priority given PHP's ubiquity and the act_now label, but exploitation in any given deployment is gated by configuration and the presence of an application gadget chain rather than being universally weaponizable.

Exploit ScenarioDerived

An attacker who can place large, partly attacker-controlled strings into a file-based PHP session - for example via session.upload_progress during a multipart upload - arranges data so that an interrupted replacement write leaves a session file containing the start of the new session followed by the tail of the old one, turning former string bytes into serialized object data. On the next session_start(), PHP unserializes the injected object, and if the application contains a suitable gadget chain this executes code as the PHP worker. No public exploit or PoC is identified in the available data; the network vector is low-complexity but the required write interruption is an attack requirement (AT:P) not fully under the attacker's control.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
1 PoC candidate (unverified) Patch available 17.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 19, 2026

Remote code execution can result from PHP's default files session save handler, which rewrites session files in place without first truncating them; an interrupted write leaves a hybrid file whose tail comes from the previous session. Bytes that were previously part of an ordinary string can then be reinterpreted as serialized objects on the next session_start(), and if the hosting application contains a suitable unserialize gadget chain this escalates to code execution with the privileges of the PHP worker. Affected are PHP 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; exploitation requires attacker influence over session data (session upload progress is one named path), a write interrupted at a useful offset, and an application gadget chain, so without a gadget chain the practical impact is session-data corruption. No public exploit code has been identified at time of analysis, and priority is rated act_now on the strength of the flaw class rather than observed exploitation.

RemediationAI

Vendor-released patch: upgrade to PHP 8.2.36, 8.3.37, 8.4.28 or 8.5.13 respectively for each branch - the fix truncates the session file to zero before writing replacement data and aborts the write if truncation fails, so an interrupted write can lose session data but can no longer retain the old suffix that enables the attack (see https://github.com/php/php-src/security/advisories/GHSA-fm2m-fjf5-v3cp). As a temporary measure the advisory recommends administratively disabling session.upload_progress.enabled when the feature is not needed; this removes the multipart-upload input path but does not protect applications that independently store attacker-controlled data in sessions, and it disables upload progress reporting for legitimate users. Limiting the volume of untrusted data stored in sessions reduces the window in which a partial overwrite can splice attacker-shaped bytes, at the cost of application functionality that depends on large session values. A session storage backend that replaces records atomically avoids this specific file-write defect, but the PHP update remains the recommended fix for applications using the built-in files handler, and other backends must have their own interrupted-update handling assessed separately.

Affected VersionsENISA

PHP 8.5.0 <8.5.13
PHP 8.4.0 <8.4.28
PHP 8.3.0 <8.3.37
PHP 8.2.0 <8.2.36

Affected Packages

euvd php fix: 8.2.36, 8.3.37, 8.4.28, 8.5.13

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

PHP's files session save handler stores serialized session payloads on disk and updates them through ps_files_write(), which writes the new serialized data over the existing file content. The advisory states the implementation does not clear the existing contents before every write, so a write that stops after replacing only part of the file yields a prefix of the new session followed by a suffix of the old one. The file lock serializes competing session operations but does not make an interrupted write atomic - the weakness class is CWE-367 (time-of-check time-of-use) with the associated CWE-662 (improper synchronization) noted in the advisory. Because PHP's session decoders reuse the language's unserialization machinery, the spliced buffer can be parsed differently from either original session, promoting string bytes into serialized object data that is instantiated and had its deserialization behavior invoked on the next session read. The advisory identifies session upload progress (session.upload_progress.enabled, populated via multipart uploads) as one remote input path and, independently, any application that stores large user-controlled strings in a session; on threaded PHP builds a hard memory-limit failure in another thread can terminate the process mid-write, giving an attacker a lever on where the write stops (reflected as AT:P in the CVSS 4.0 vector and AC:H in the independent CVSS 3.1 assessment). The CPE cpe:2.3:a:php_group:php:*:*:*:*:*:*:*:* covers the PHP distribution itself; the defect lives in the ext-session component, and other session storage backends are not affected by this specific file-write defect.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (php) PRIMARY 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
vuln.today AI 8.1 HIGH

Network-reachable (AV:N) but requires an interrupted write at a useful point plus an application gadget chain, so AC:H; vendor models worst-case exposure as PR:N; full code execution gives C/I/A:H.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (php).

CVSS VectorVendor: php

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 19, 2026 - 16:18 EUVD
CVE Published
Nov 19, 2026 - 14:43 cve.org
CRITICAL 9.2

DescriptionCVE.org

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.

Technical POC Analysis

CWE-367 (TOCTOU race condition) is assigned; CWE-662 is also listed in the advisory.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

PHP session handling contains a critical vulnerability (CVE-2026-126714) that could allow remote code execution in applications with specific gadget chains, potentially compromising the entire PHP worker process and exposing sensitive data or enabling lateral movement. While no public exploit exists yet and exploitation requires several preconditions, the high severity and widespread use of PHP make this a priority for immediate remediation. Leadership should ensure affected systems are identified and mitigations applied swiftly to reduce organizational risk.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include disabling the 'files' session save handler, validating session data to prevent attacker influence, monitoring session files for corruption, and isolating PHP worker processes to contain potential exploitation.

Threat Intelligence Overview

EPSS Score
17.6%
Top 3% exploitable
Prevalence
Ubiquitous
PHP is one of the most widely deployed web runtimes; files is the default session handler
Threat Intel
2
1 sources
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment NEWS MSRC GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 17.6%
Patch available Yes
Active threat Yes
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

84
Low Medium High Critical
KEV: 0
EPSS: +18
CVSS: +46
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy