## Overview
CVE-2026-129474 is a critical vulnerability in PHP affecting versions 8.5.* before 8.5.13. This flaw involves a use-after-free condition in magic method backtraces, which can lead to remote code execution.
## Technical Details
The vulnerability occurs when PHP collects arguments from method calls handled by `__call()` or `__callStatic()` for backtraces. If a fatal error, such as exceeding the memory limit, happens during this process, PHP may read stale values that reference freed memory. This situation is exacerbated if `fatal_error_backtraces` is enabled (which is the default) and `zend.exception_ignore_args` is disabled. An attacker with control over request data can exploit this to corrupt memory, crash the PHP worker, or execute arbitrary code if they know memory addresses.
## Impact
Exploitation of CVE-2026-129474 could allow a remote attacker to execute arbitrary code on affected systems. This poses a significant risk, especially in environments where PHP applications are exposed to untrusted input. The vulnerability is classified with a CVSS score of 9.2, indicating its high severity.
## Mitigation
Defenders should immediately upgrade to PHP version 8.5.13 or later to mitigate this vulnerability. Additionally, consider enabling `zend.exception_ignore_args` in your `php.ini` file to reduce the risk of exploitation. Regularly monitor for updates and apply security patches as they are released.
CSURFACE Threat Sensor