# CVE-2026-129474: Use-after-free in magic method backtraces can lead to remote code execution

- Severity: Critical 9.2 (CVSS:4.0, scored by php) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 21.2%, higher than 97% of CVEs (2026-12-01)
- Published: 2026-11-19T14:43:04.047Z
- Modified: 2026-11-27T06:55:31.773Z
- Also known as: BIT-LIBPHP-2026-129474, BIT-PHP-2026-129474, BIT-PHP-MIN-2026-129474, GHSA-8mjj-2r7p-4hg2
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: php

## 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.

(As written by CVE List.)

## Affected

- PHP Group PHP: from 8.5.0 before 8.5.13
- libphp (Bitnami): from 8.5.0 before 8.5.13
- php (Bitnami): from 8.5.0 before 8.5.13
- php-min (Bitnami): from 8.5.0 before 8.5.13

## Every score

- php: CVSS:4.0 9.2 Critical `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/php/php-src/security/advisories/GHSA-8mjj-2r7p-4hg2> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/cve-2026-129474> (web)
- <https://ubuntu.com/security/CVE-2026-129474> (web)
- <https://github.com/murrez/php2shell/blob/a8e24f4efab57f67384909d9408e42a74b973bfb/poc.py#L808-L816> (signature, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-129474> (web)

## Sources

- CVE List: [CVE-2026-129474](https://www.cve.org/CVERecord?id=CVE-2026-129474), CVE Terms of Use, modified 2026-11-22
- NVD: [CVE-2026-129474](https://nvd.nist.gov/vuln/detail/CVE-2026-129474), Public domain, modified 2026-11-22
- Bitnami Vulnerability Database: [BIT-LIBPHP-2026-129474](https://osv.dev/vulnerability/BIT-LIBPHP-2026-129474), Apache-2.0, modified 2026-11-27
- Bitnami Vulnerability Database: [BIT-PHP-2026-129474](https://osv.dev/vulnerability/BIT-PHP-2026-129474), Apache-2.0, modified 2026-11-27
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2026-129474](https://osv.dev/vulnerability/BIT-PHP-MIN-2026-129474), Apache-2.0, modified 2026-11-27

---

Page: https://cve.day/CVE-2026-129474 · Whole record: https://cve.day/CVE-2026-129474.json · Rebuilt by cve.day 2026-11-27T07:07:32.654Z
