Skip to main content

PHP EUVDEUVD-2026-130172

| CVE-2026-129481 CRITICAL
Use After Free (CWE-416)
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 vulnerable PHP-FPM worker
  2. Delivery
    Trigger fatal error in session-cleanup callback
  3. Exploit
    Abort shutdown leaving stale filename pointer
  4. Execution
    Request heap freed with pointer retained
  5. Persist
    Later request on same worker frees stale string
  6. Impact
    Heap use-after-free crashes or corrupts worker

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a specific, largely non-default chain: (1) PHP-FPM (or any reused-worker SAPI) where the same worker handles multiple requests; (2) OPcache disabled for the relevant script, or the script otherwise not OPcache-cached, so the recorded session filename is allocated in request (not persistent) memory - a filename held in persistent OPcache memory does NOT produce the dangling pointer; (3) an application that starts a session and holds a user-defined stream wrapper (or similar callback-bearing resource) in session variables; (4) that callback - e.g. stream_close() - raising a fatal error during session destruction at shutdown, aborting cleanup before the filename is cleared; and (5) a subsequent request reaching the same worker (it need not belong to the same user or session). Limiting factors: the whole sequence depends on the application reaching the failing cleanup path, so authentication requirements vary by application; the CVSS AC:H and AT:P reflect these non-default preconditions. Note this path does NOT require session upload progress or a diagnostic-producing FastCGI parameter. Disabling session upload progress does not mitigate it, and enabling OPcache alone is not reliable because scripts can still run uncached. Mitigations per the advisory: upgrade to the fixed branch release (8.3.37/8.4.28/8.5.13); until then avoid fatal errors in callbacks reached during session cleanup, and for PHP-FPM set pm.max_requests=1 and restart workers (at a performance cost) to prevent a second request reaching the same worker.

Impact

Signals are genuinely mixed and must be read together. The input CVSS 4.0 vector scores 9.2 but is built on AC:H and AT:P, meaning the vendor itself treats this as high-complexity with a specific attack requirement - not a trivial remote hit. The vuln.today priority is act_now, and CWE-416 (use-after-free) with a path toward potential RCE justifies attention, yet the advisory is explicit that code execution 'has not been demonstrated,' so the VC:H/VI:H/VA:H impact metrics represent worst-case memory-corruption potential rather than a proven RCE. No KEV listing and no EPSS score are provided in the input, so there is no evidence of active or widespread exploitation; absence of these is not disproof but should not be read as confirmation either. The realistic confirmed impact today is a worker crash (DoS) and heap corruption under a narrow, non-default configuration (OPcache disabled / script not OPcache-cached, PHP-FPM worker reuse, and a user-defined stream wrapper whose stream_close() raises a fatal error during session cleanup). Net: this is a real, patch-worthy issue given its act_now label and ubiquitous platform, but the practical risk to a default deployment is bounded by the AC:H/AT:P preconditions - treat it as a high-priority patch, not evidence of mass exploitation.

Exploit ScenarioDerived

On a PHP-FPM server running an affected 8.3/8.4/8.5 build with OPcache disabled (or the target script uncached), an application stores a user-defined stream resource in the session; when the session is destroyed at shutdown, the wrapper's stream_close() callback raises a fatal error, aborting session cleanup before the recorded script filename pointer is cleared. After the request heap is freed, a later request routed to the same worker reaches and frees the stale filename pointer, producing a heap use-after-free that crashes the worker or corrupts memory. No public working exploit is identified in the input; the advisory describes a reporter's reproducer that confirmed the use-after-free on 8.4.27 and 8.5.12 but did not demonstrate code execution.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 4.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 19, 2026

Use-after-free in PHP's session extension (8.3.* before 8.3.37, 8.4.* before 8.4.28, 8.5.* before 8.5.13) lets a remote attacker who can make session cleanup fail - for example a user-defined stream wrapper whose stream_close() raises a fatal error while session variables are destroyed - leave a dangling pointer to the executing script's filename in a worker that has already freed its request memory; the next request served by that same PHP-FPM worker can then release the stale string, crashing the worker or corrupting heap memory. Code execution through this specific field has not been demonstrated; the impact ceiling is memory corruption with a theoretical path to RCE, and no public exploit was identified at time of analysis. The vendor scores it CVSS 4.0 9.2 (AV:N/AC:H/AT:P/PR:N/UI:N), while our independent CVSS 3.1 assessment is lower because the demonstrated sequence depends on non-default preconditions - OPcache disabled for the script so the filename is request-owned, a callback-bearing resource held in the session, and reuse of the same worker by a later request.

RemediationAI

Vendor-released patch: upgrade to PHP 8.3.37, 8.4.28 or 8.5.13 respectively for the 8.3, 8.4 and 8.5 branches, as documented in https://github.com/php/php-src/security/advisories/GHSA-g3vh-838c-65v7; the fix clears the recorded session filename and line number during session initialization and terminates the PHP process if a module's request-shutdown handler bails out, so a partially cleaned-up process never serves another request. Until the fixed release is deployed, the advisory's mitigations are: avoid fatal errors in callbacks reached during session cleanup (eliminating the abort that leaves the pointer behind), and for PHP-FPM set pm.max_requests=1 and restart workers so no second request reaches a worker with the stale pointer, accepting the throughput and restart overhead this imposes. Note that disabling session upload progress does not address this path, and enabling OPcache alone is not a reliable mitigation because scripts can still execute without being cached; the vendor states updating is the complete fix.

Affected VersionsENISA

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

Affected Packages

euvd php fix: 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

The flaw is a CWE-416 use-after-free in PHP's ext/session, described by the vendor as an incomplete fix (CWE-459) for CVE-2026-109619. When a session starts, PHP stores the executing script's filename in an internal global. Session shutdown destroys the session variables first and releases that filename afterwards, but destroying session variables can invoke application callbacks, such as a user-defined stream wrapper's stream_close(). If such a callback raises a fatal error, the bailout aborts session shutdown before the filename is released or cleared; PHP catches the bailout and continues tearing down the request, freeing the request heap while the worker still holds the filename pointer. Because the next request's session initialization does not reset that field, starting another session - or even ordinary session-module shutdown in a script that calls no session functions - can release the stale string. The requests must land on the same worker but need not share a user or session. Memory ownership is decisive: the dangling pointer only forms when the filename lives in request memory (reproduced with OPcache disabled), whereas a filename held in persistent OPcache memory does not produce the same condition, though scripts can still execute uncached even with OPcache enabled. Unlike the earlier early-error and upload-progress variants, this path needs neither a diagnostic-producing FastCGI parameter nor session upload progress. The reporter reproduced it on PHP 8.4.27 and 8.5.12 with PHP-FPM; PHP 8.3.36 carries the same vulnerable code, while PHP 8.2 lacks the affected session filename field and is not affected.

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:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.0 HIGH

Non-default config and failing-callback preconditions make AC:H; no inherent auth so PR:N; confirmed impact is worker crash (A:H) plus heap corruption (C:L/I:L), as code execution is not demonstrated.

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

Primary rating from Vendor (php).

CVSS VectorVendor: php

Attack Vector
Network
Attack Complexity
High
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

Use-after-free after interrupted session shutdown.

The session extension records the filename of the executing script when a session starts. If a fatal error occurs in an application callback while the session variables are destroyed at shutdown, such as stream_close() of a user-defined stream wrapper, the pointer is retained after the request memory is freed, and a later request handled by the same worker can free the stale string. An attacker who can trigger such a failing cleanup may crash the worker or corrupt memory; code execution has not been demonstrated. This requires the filename to be allocated in request memory, for example when the script is not cached by OPcache.

This issue affects PHP versions 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.

Technical POC Analysis

CWE-416 (Use After Free), with CWE-459 (Incomplete Cleanup) as a secondary weakness.

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

Executive ViewAI

Why It Matters

A critical memory corruption vulnerability in PHP's session extension affects all supported PHP versions used by our web-facing applications, potentially allowing remote attackers to crash PHP-FPM workers or, under specific non-default configurations, achieve heap corruption. While no active exploitation or working exploit code has been identified, the vulnerability poses a risk to service availability and, in a worst-case scenario, could lead to remote code execution. Leadership should prioritize patching because PHP underpins many of our customer-facing services, and unpatched exposure could disrupt operations and undermine trust.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include enabling OPcache for all scripts, avoiding user-defined stream wrappers in session handling, and monitoring for unusual PHP-FPM worker crashes.

Threat Intelligence Overview

EPSS Score
4.5%
Top 8% exploitable
Prevalence
Ubiquitous
PHP powers a huge fraction of web servers worldwide across all sectors
Threat Intel
1
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 No
EPSS 4.5%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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

51
Low Medium High Critical
KEV: 0
EPSS: +5
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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