Skip to content
NewA calmer, faster ZeroHour

CVE-2026-129474

Use-after-free in PHP magic-method backtraces may allow RCE

CVSS 4.0
9.2 critical
EPSS
—
Published
·
Modified
Analyze CVE-2026-129474 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

PHP can read freed memory while collecting arguments of a __call() or __callStatic() call for a backtrace. A remote attacker who can drive request data enough to hit a fatal error such as memory_limit, with fatal_error_backtraces on (the default) and zend.exception_ignore_args off, may corrupt memory, crash the PHP worker, or, if they know addresses, run code. This affects PHP 8.5 before 8.5.13; php.ini-production enables the setting that blocks it.

What to do: Upgrade PHP 8.5 to 8.5.13. Enabling zend.exception_ignore_args, as php.ini-production does, prevents the issue.

ProductAffectedFixed in
PHP8.5.* before 8.5.138.5.13
Estimated exposure
No basis for an estimate.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

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.

Weakness
CWE-416
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

7 stories