CVE-2026-129474
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Fixed 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | php8.4 |
Not affected | — |
| sid | php8.4 |
Not affected | — |
| forky | php8.4 |
Not affected | — |
| bookworm | php8.2 |
Not affected | — |
Gentoo Fixed 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| — | — | Fixed | 8.2.36 |
Ubuntu Fixed 8 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| xenial | php7.0-xmlrpc php7.0-xml php7.0-zip +36 more |
Fixed | 7.0.33-0ubuntu0.16.04.16+esm23 |
| trusty | php5-fpm php5-enchant php5-cgi +26 more |
Fixed | 5.5.9+dfsg-1ubuntu4.29+esm19 |
| stonking | php8.5-sqlite3 php8.5-curl php8.5-dba +30 more |
Fixed | 8.5.9-0ubuntu2.2 |
| resolute | php8.5-soap php8.5-xsl php8.5-bcmath +30 more |
Fixed | 8.5.4-0ubuntu1.6 |
| noble | php8.3-snmp php8.3-pspell php8.3-readline +32 more |
Fixed | 8.3.6-0ubuntu0.24.04.14 |
| jammy | php8.1-cli php8.1-enchant php8.1-ldap +34 more |
Fixed | 8.1.2-1ubuntu2.29 |
| focal | php7.4-gmp php7.4-mbstring php7.4-phpdbg +34 more |
Fixed | 7.4.3-4ubuntu2.29+esm6 |
| bionic | libapache2-mod-php7.2 php7.2 php7.2-ldap +35 more |
Fixed | 7.2.24-0ubuntu0.18.04.17+esm15 |
SUSE Tracked 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| — | — | Unknown | — |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| php | php | {"startIncluding":"8.5.0","endExcluding":"8.5.13"} | 8.5.13 |
References
- https://www.suse.com/security/cve/CVE-2026-129474.html
- https://github.com/php/php-src/security/advisories/GHSA-8mjj-2r7p-4hg2
- https://security-tracker.debian.org/tracker/CVE-2026-129474
- https://security.gentoo.org/glsa/202611-13
- https://access.redhat.com/security/cve/cve-2026-129474
- https://github.com/murrez/php2shell/blob/a8e24f4efab57f67384909d9408e42a74b973bfb/poc.py#L808-L816
- https://ubuntu.com/security/CVE-2026-129474
- https://ubuntu.com/security/notices/USN-9185-1
CWEs
CWE-416
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.