CVE-2026-129474: Libphp · Use-after-free in magic method backtraces can lead to remote code execution
Affects libphpSource GCVE Database
Not known to be exploited · CVSS 9.2 Critical : upgrade to 8.5.13 as a priority.
Data as of 27 Nov 2026, 08:29 UTC
Thin evidence
One scorer or none| CNA (php) | CVSS 4.0 | 9.2 |
|---|
- Patch
- Available – fixed in 8.5.13
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 19 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.
What to do
Upgrade libphp to 8.5.13.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Bitnamilibphppkg:bitnami/libphpOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in PHP version 8.5.13 that fixes this vulnerability. Users should upgrade to PHP 8.5.13 or later to remediate the issue. The Red Hat advisory and PHP's php.ini-production configuration enable zend.exception_ignore_args by default, which prevents this vulnerability. Administrators should verify these settings and apply the official fix as recommended.
Description
A use-after-free vulnerability in PHP's handling of magic method backtraces can lead to remote code execution. This occurs when collecting arguments for __call() or __callStatic() methods during a backtrace if a fatal error like exceeding memory_limit happens. The issue affects PHP versions 8.5.0 up to but not including 8.5.13. A fix is available in PHP 8.5.13. The vulnerability can cause memory corruption, crashes, or arbitrary code execution if exploited.
References
- access.redhat.com/security/cve/cve-2026-129474 (opens in a new tab)
- github.com/murrez/php2shell/blob/a8e24f4efab57f67384909d9408e42a74b973bfb/poc.py (opens in a new tab)
- github.com/php/php-src/security/advisories/GHSA-8mjj-2r7p-4hg2 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-129474 (opens in a new tab)
- ubuntu.com/security/CVE-2026-129474 (opens in a new tab)