Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach PHP 8.5 worker with conflicting per-path INI
-
DeliveryTrigger fatal error during request shutdown
-
ExploitRepopulate freed fatal-error backtrace global
-
ExecutionSend later request causing pre-init diagnostic
-
PersistAccess stale backtrace (use-after-free)
-
ImpactCorrupt worker memory and crash
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 two concurrent, non-default conditions in the same PHP-FPM or mod_php worker. First, a shutdown-time fatal error must repopulate the freed backtrace, which needs a per-path INI conflict: either a path-specific max_memory_limit override (administrative configuration only; .user.ini cannot set it) whose restore fails when memory still exceeds the global limit, or global zlib.output_compression=1 with a path-specific zlib.output_compression=0 plus output_handler=ob_gzhandler (these zlib settings CAN be supplied via .user.ini). Second, a diagnostic must fire before executor initialization in a later request to the same worker, provided by Apache per-directory configuration, or on FPM only when the frontend sends a diagnostic-producing PHP_VALUE or PHP_ADMIN_VALUE FastCGI parameter. Ordinary FPM pool settings and .user.ini alone do NOT supply this early diagnostic. These configuration dependencies are the principal limiting factors; default deployments without such per-path overrides are not exposed. Temporary mitigation per vendor: set fatal_error_backtraces=0 administratively and restart all workers, ensuring request-specific config cannot re-enable it; the only complete fix is upgrading to PHP 8.5.13. |
| Impact | This is a genuine high-priority issue but one whose real-world risk is strongly gated by configuration rather than by raw reachability. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N, VC/VI/VA:H, score 9.2) encodes the key nuance: PR:N makes it unauthenticated and AV:N makes it network-reachable, but AT:P (Attack Requirements: Present) reflects that exploitation depends on specific, non-default server configuration. The vuln.today decision label is act_now, consistent with the critical score and the vendor's statement that memory corruption and potentially full RCE are possible. However, the signals are not uniformly alarming: there is no CISA KEV listing and no EPSS score in the provided data, so there is no evidence of active or widespread exploitation. The only reference is the PHP GHSA advisory itself, not a PoC, so no public exploit code is indicated. The vendor explicitly notes RCE through these specific entry points has NOT been demonstrated; only heap use-after-free and worker crashes were shown. Net: treat as urgent patching per the act_now label, but recognize that the two independent configuration preconditions (a shutdown-time fatal error AND an early pre-init diagnostic in the same worker) materially narrow the exposed population below what a 9.2 score alone would suggest. |
| Exploit ScenarioDerived | On a PHP 8.5.x server (PHP-FPM or mod_php), an attacker repeatedly hits a path whose per-directory configuration creates a conflicting INI state (e.g. a path-specific max_memory_limit override, or zlib.output_compression toggled against output_handler), causing a fatal error during request shutdown that repopulates the already-freed last_fatal_error_backtrace global. A later request to the same worker that triggers an early diagnostic before executor initialization, via Apache per-directory configuration or an FPM PHP_VALUE/PHP_ADMIN_VALUE parameter from the frontend, then reads the stale backtrace pointer. No public exploit code is identified; the vendor demonstrated use-after-free and worker crashes but not RCE through these entry points. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
PHP 8.5.x before 8.5.13 contains a use-after-free of the global last_fatal_error_backtrace that can corrupt the request heap of a long-lived PHP-FPM or mod_php worker, crashing it and potentially enabling remote code execution. The flaw is reachable by unauthenticated remote attackers (CVSS v3.1 AV:N/PR:N) but only in deployments that combine per-path INI overrides which can raise a fatal error during post-shutdown INI restoration with a second condition that emits a diagnostic before executor initialization in a later request on the same worker; default configurations lack both prerequisites. The vendor describes demonstrated heap use-after-free and worker crashes through these entry points, while RCE via them has not been demonstrated, and no public exploit code or CISA KEV entry is associated with this CVE at time of analysis; the vulnerability is tracked with an act_now priority and is a follow-on to the earlier backtrace use-after-free fixed in 8.5.12 under CVE-2026-109619.
RemediationAI
Upgrade to PHP 8.5.13, which is the version the vendor lists as fixed and the only complete remediation; the fix removes creation and consumption of the fatal-error backtrace while the executor is inactive, closing this and other shutdown-diagnostic variants. If upgrading cannot be done immediately, the vendor's temporary workaround is to disable fatal-error backtraces administratively with fatal_error_backtraces=0 and restart all workers, taking care that request-specific configuration (.user.ini, per-directory config, or PHP_VALUE/PHP_ADMIN_VALUE) cannot re-enable the setting - note that this suppresses a diagnostic capability rather than removing the underlying use-after-free, and it must be applied to every worker so no process retains the old state. Reducing exposure further means auditing per-path INI overrides in Apache and FPM pool/frontend configuration: removing path-specific max_memory_limit overrides that conflict with the global limit, and avoiding the global zlib.output_compression=1 versus per-path zlib.output_compression=0 plus output_handler=ob_gzhandler combination, since those are the documented ways to force the shutdown-time fatal error. Deployments that never set such per-path overrides, and FPM frontends that do not forward PHP_VALUE/PHP_ADMIN_VALUE parameters, are not exposed per the advisory and can be prioritized lower for emergency change windows, but should still be scheduled onto 8.5.13.
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 root cause is CWE-416 (use-after-free) compounded by CWE-459 (incomplete cleanup) in the Zend executor's shutdown path. PHP 8.5.12 addressed CVE-2026-109619 by clearing the last_fatal_error_backtrace global during executor shutdown, but later shutdown work can recreate that state: while PHP restores modified INI settings after the executor has been torn down, a fatal error can fire and repopulate the backtrace. Two concrete triggers are documented. The first is memory-limit restoration: when max_memory_limit is set in both the global and a path-specific configuration and memory consumption still exceeds the global limit, restoring the global value raises a fatal error. The second involves zlib: with global zlib.output_compression=1 and a path-specific zlib.output_compression=0 plus output_handler=ob_gzhandler, restoring compression before restoring output_handler produces a fatal configuration conflict. In both cases the request heap is subsequently released while the backtrace pointer survives into the worker's next request, where a diagnostic emitted before normal executor initialization dereferences the stale memory. The upstream fix is generic rather than case-specific: PHP no longer creates or consumes the fatal-error backtrace while the executor is inactive, which also covers other shutdown diagnostics that might recreate the state. Exposure differs by SAPI and configuration: the max_memory_limit variant needs administrative per-path configuration (.user.ini cannot change max_memory_limit), while the zlib settings can be supplied through .user.ini. The second stage likewise differs - Apache per-directory configuration can supply the early diagnostic, whereas PHP-FPM is only conditionally exposed when the frontend passes a diagnostic-producing PHP_VALUE or PHP_ADMIN_VALUE FastCGI parameter; ordinary FPM pool settings and .user.ini alone do not. Note that CVSS v4 metrics such as AT:P describe attack prerequisites, not a timing or race condition; the trigger sequence is the INI-restoration fatal error followed by an early diagnostic on a subsequent request.
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:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-reachable and unauthenticated (AV:N/PR:N), but the required non-default per-path INI conflict plus a same-worker early diagnostic are attacker-uncontrolled prerequisites, so AC:H; impacts set High for potential RCE though only crashes were demonstrated.
Primary rating from Vendor (php).
CVSS VectorVendor: php
Lifecycle Timeline
2DescriptionCVE.org
Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown.
A fatal error raised while modified INI settings are restored during request shutdown can repopulate the stored fatal error backtrace after the executor has been cleaned up. The request memory is then freed, and a diagnostic emitted before executor initialization in a later request handled by the same PHP-FPM or mod_php worker can access the stale backtrace. The shutdown error requires per-path configuration of max_memory_limit, or of zlib.output_compression together with output_handler (which .user.ini can also set). The early diagnostic requires Apache per-directory configuration or, for PHP-FPM, a PHP_VALUE or PHP_ADMIN_VALUE parameter sent by the front end. This can cause memory corruption and worker crashes, and may allow remote code execution.
This issue affects PHP versions 8.5.* before 8.5.13.
Articles & Coverage 1
Technical POC Analysis
CWE-416, Use After Free.
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
A critical use-after-free vulnerability in PHP 8.5.x (CVE-2026-129182) can crash long-lived PHP-FPM or mod_php workers and potentially enable remote code execution, though only under specific non-default configurations. While no public exploit or active exploitation has been identified, the flaw is remotely reachable without authentication and poses a serious risk to organizations running affected PHP deployments with per-path INI overrides and certain diagnostic conditions. Leadership should prioritize immediate patching and mitigation to prevent service disruptions and potential compromise.
Apply vendor patch.
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-130122
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB