Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.4

CVE-2026-129474: PHP 8.5 can let attackers run code remotely

CVE-2026-129474 · published 17 days ago
Summary

PHP version 8.5 up to 8.5.12 may read old memory when handling special method calls, which can let a remote user cause the server to crash or run their own code. Updating PHP to 8.5.13 or later, or enabling the recommended security setting in the configuration, resolves the risk.

What to do
  • Update canonical php8.5 to version 8.5.9-0ubuntu2.2.
  • Update canonical php8.5 to version 8.5.4-0ubuntu1.6.
  • Update libphp to version 8.5.13.
  • Update php to version 8.5.13.
  • Update php-min to version 8.5.13.
  • Update php group php to version 8.5.13 or later.
Affected software
Ecosystem VendorProductAffected versions
– php group php < 8.5.13
Ubuntu:26.10 canonical php8.5 < 8.5.9-0ubuntu2.2
Fix: upgrade to 8.5.9-0ubuntu2.2
Ubuntu:26.04:LTS canonical php8.5 < 8.5.4-0ubuntu1.6
Fix: upgrade to 8.5.4-0ubuntu1.6
Bitnami – libphp >= 8.5.0, < 8.5.13
Fix: upgrade to 8.5.13
Bitnami – php >= 8.5.0, < 8.5.13
Fix: upgrade to 8.5.13
Bitnami – php-min >= 8.5.0, < 8.5.13
Fix: upgrade to 8.5.13
Original advisory text
Use-after-free in magic method backtraces can lead to remote code execution
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.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
9.4 Critical
Exploitation
21% chance of attack within 30 days
Type
CWE-416Use After Free
Timeline
Published19 Nov 2026
Updated2 Dec 2026
First seen19 Nov 2026
Track software like this
Free during beta