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 | Vendor | Product | Affected 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.
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.
References
- https://ubuntu.com/security/notices/USN-9185-1 Vendor Advisory
- https://github.com/php/php-src/security/advisories/GHSA-8mjj-2r7p-4hg2 Vendor Advisory
- https://access.redhat.com/security/cve/cve-2026-129474 URL
- https://github.com/murrez/php2shell/blob/a8e24f4efab57f67384909d9408e42a74b973bf... URL
- https://ubuntu.com/security/CVE-2026-129474 URL
- https://www.cve.org/CVERecord?id=CVE-2026-129474 Third Party Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-1294... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-129474 Vendor Advisory
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
Type
CWE-416Use After Free
Timeline
Published19 Nov 2026
Updated2 Dec 2026
First seen19 Nov 2026
Sources
CVE-2026-129474 · NVD
CVE-2026-129474 · MITRE
UBUNTU-CVE-2026-129474 · OSV
CVE-2026-129474 · OSV
GHSA-8mjj-2r7p-4hg2 · GHSA
BIT-php-min-2026-129474 · OSV
Track software like this
Free during beta