Use-after-free in magic method backtraces can lead to remote code execution
- CVE-2026-129474
- EUVD-2026-130146
Description
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.
Text from the CVE.org record.
Recommendation
PHP Group PHP
- If you run 8.5.xupdate to 8.5.13 or laterPatch update: breaking changes are unlikely
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
PHP Group PHP
Affected versions Fixed in from 8.5.0 to before 8.5.13 8.5.13
Product versions from the CVE.org record.
Timeline
- Published
- EPSS first scored at 21%
Related news
No article from the followed outlets names this vulnerability.