Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted request to a magic-method code path
-
DeliverySize payload to cross memory_limit during argument build
-
ExploitTrigger fatal error while entering __call()/__callStatic()
-
ExecutionBacktrace collects freed request-controlled memory
-
ImpactCorrupt memory and execute code as PHP 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 PHP 8.5.x worker (>=8.5.0, <8.5.13) running with fatal_error_backtraces=1 (default in 8.5) AND zend.exception_ignore_args=0 - the latter is NOT the case under php.ini-production, which sets zend.exception_ignore_args=1 and fully blocks this path. It also requires an application code path that forwards through a __call() or __callStatic() magic method (e.g., logging facades, DB interfaces, service proxies such as Laravel facades or Magento guest shipping estimation), attacker control over enough request data to influence memory allocation, and a fatal error (exceeding memory_limit, or an execution-time-limit expiry) occurring precisely as PHP enters that magic call. For actual code execution rather than a worker crash, the attacker additionally needs knowledge of usable memory addresses to defeat ASLR. Limiting factors: production-default configuration neutralizes the attack; authentication requirements depend entirely on which application path reaches the magic method; mere presence of a framework, magic method, or large request body does not establish exploitability. PHP 8.2-8.4 contain the underlying bug but have no established remote trigger and are out of scope. |
| Impact | Multiple signals point to a genuine high priority. The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N) with VC:H/VI:H/VA:H yields a 9.2 and reflects full-impact remote code execution, and the vuln.today Decision label is act_now. The underlying bug (CWE-416 use-after-free) is credible and the advisory states RCE was actually demonstrated against PHP 8.5 by the reporting PHP team. However, the severity signals are tempered by real exploitation friction encoded in the vector itself: AC:H and AT:P indicate the attack is not simply fire-and-forget - it depends on application-specific conditions (a reachable __call()/__callStatic() path, attacker-influenced memory allocation, a fatal error at a precise interval) and, for actual code execution, defeating ASLR with knowledge of usable memory addresses. No EPSS score, KEV listing, or confirmed public exploit code is present in the supplied data, so there is no evidence of active or widespread exploitation yet; the risk today is demonstrated-but-targeted rather than mass-exploited. Note a configuration dependency that strongly affects real risk: the recommended php.ini-production setting (zend.exception_ignore_args=1) prevents this attack path, so environments using production defaults are not exposed even though PHP's built-in default is vulnerable. Net: treat as act_now for exposed PHP 8.5 workers, but exposure hinges on configuration and application reachability, not raw CVSS alone. |
| Exploit ScenarioDerived | An attacker submits a crafted request (e.g., oversized JSON to an import endpoint) to an application that forwards calls through a __call()/__callStatic() magic method such as a logging facade. The request is sized so that building an argument crosses memory_limit, triggering a fatal error exactly as PHP enters the magic call; with fatal_error_backtraces enabled and zend.exception_ignore_args disabled, the backtrace reads freed, request-controlled memory, corrupting memory or - with knowledge of memory addresses despite ASLR - executing code as the PHP worker. RCE was demonstrated by the reporting team, but no public exploit code is identified in the supplied data; the high attack complexity (AC:H/AT:P) reflects the required allocation timing and memory-address knowledge. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
A use-after-free in the Zend engine's backtrace argument collection gives PHP 8.5.x (8.5.0 through 8.5.12) a remote code execution path when a fatal error strikes while the application is entering a method forwarded through __call() or __callStatic(). Exploitation requires fatal_error_backtraces=1 (default in 8.5) plus zend.exception_ignore_args=0, an application path that actually reaches a magic-method call, attacker control over enough request data to steer memory allocation, and - for code execution rather than a worker crash - knowledge of usable memory addresses to defeat ASLR; php.ini-production sets zend.exception_ignore_args=1 and fully blocks the attack path. No public exploit code has been identified at time of analysis and there is no CISA KEV listing, though the priorities signal is act_now and the vendor advisory documents an internally demonstrated end-to-end chain; fixed in PHP 8.5.13.
RemediationAI
Upgrade to PHP 8.5.13, the fixed release for the 8.5 branch (the advisory phrases this as upgrading to 8.5.13 when available); this is the only complete fix. If an immediate update is not possible, set zend.exception_ignore_args=1 in the configuration actually consumed by the affected PHP workers and restart them - this is the primary workaround for the fatal error path, and it is already the value shipped in php.ini-production, so confirm the effective value including FPM pool settings and application-level overrides, since changing only the CLI configuration is insufficient. On PHP 8.5 and later, setting fatal_error_backtraces=0 also closes this attack path, at the cost of losing fatal error backtraces for diagnostics. Note that display_errors=0 does not prevent PHP from constructing the backtrace and provides no protection. Request-size limits and avoiding expensive processing or logging of untrusted request bodies reduce exposure but are not a complete substitute for the configuration change or the update, and extensions that independently inspect interrupted calls should be reviewed as well.
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 CWE-416 (use-after-free) inside PHP's backtrace machinery. Before PHP actually enters a __call() or __callStatic() handler, the engine briefly represents the requested method as a separate call; a backtrace captured during that interval can collect values left behind by an earlier call instead of the current arguments, and some of those values can point into memory that has already been freed. PHP 8.5.0 introduced fatal error backtraces, and PHP 8.5.12 added delayed handling of allocation failure, which allows a memory_limit fatal error (or an execution-time-limit expiry) to be reported exactly while the magic method call is being entered. With fatal_error_backtraces enabled and zend.exception_ignore_args disabled, PHP then treats request-controlled bytes in reused memory as live argument values; processing or releasing that backtrace can corrupt memory or transfer control to an attacker-chosen address. Magic methods are widespread in framework forwarding layers (logging facades, database interfaces, service proxies - the advisory cites Laravel facades and Magento guest shipping estimation as examples of reachable calls), but the presence of a framework, a magic method, or a large request body alone does not establish exploitability. PHP 8.2-8.4 contain the underlying backtrace error but no attacker-controlled remote trigger has been established, so those branches are outside the affected range.
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
Remotely reachable and unauthenticated where the app path allows (AV:N/PR:N/UI:N), but precise allocation timing, fatal-error interval, and ASLR-defeating address knowledge make it AC:H; full RCE impact gives C/I/A:H.
Primary rating from Vendor (php).
CVSS VectorVendor: php
Lifecycle Timeline
2DescriptionCVE.org
Use-after-free in magic method backtraces can lead to remote code execution.
When collecting the arguments of a method call handled by __call() or __callStatic() for a backtrace, PHP can read stale values that may refer to freed memory. If a fatal error such as exceeding memory_limit occurs while an application enters such a call, with fatal_error_backtraces enabled (the default) and zend.exception_ignore_args disabled, a remote attacker who controls enough request data to influence memory allocation may cause memory corruption, crash the PHP worker or, with knowledge of memory addresses, execute arbitrary code. php.ini-production enables zend.exception_ignore_args, which prevents this.
This issue affects PHP versions 8.5.* before 8.5.13.
Articles & Coverage 2
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
CVE-2026-129474 is a critical use-after-free flaw in the PHP Zend engine that can allow remote code execution on servers running PHP 8.5.0 through 8.5.12. Leadership should care because any internet-facing application on these versions with default development-style settings could be compromised, and the vendor has internally demonstrated a full attack chain. The issue is fully mitigated by upgrading to PHP 8.5.13 or, as an interim measure, ensuring the zend.exception_ignore_args setting is enabled (as it is in the production php.ini).
Set zend.exception_ignore_args=1 in php.ini (as in production defaults) to fully block the attack path; also disable fatal_error_backtraces and restrict network exposure of PHP applications until patched.
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-130146
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB