Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach vulnerable PHP-FPM worker
-
DeliveryTrigger fatal error in session-cleanup callback
-
ExploitAbort shutdown leaving stale filename pointer
-
ExecutionRequest heap freed with pointer retained
-
PersistLater request on same worker frees stale string
-
ImpactHeap 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (php).
CVSS VectorVendor: php
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-130172
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB