{"id":"CVE-2026-129474","aliases":["EUVD-2026-130146","GHSA-8mjj-2r7p-4hg2"],"title":"Use-after-free in magic method backtraces can lead to remote code execution","originalDescription":"Use-after-free in magic method backtraces can lead to remote code execution.\n\nWhen 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.\n\nThis issue affects PHP versions 8.5.* before 8.5.13.","severity":{"cvss":9.2,"vector":"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","label":"critical"},"exploitation":{"kev":null,"epss":{"score":0.21169,"percentile":0.97647},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"PHP","range":">=8.5.0, <8.5.13","fixed":"8.5.13"}],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-8mjj-2r7p-4hg2","type":"vendor-advisory"},{"url":"https://access.redhat.com/security/cve/cve-2026-129474","type":"other"},{"url":"https://github.com/murrez/php2shell/blob/a8e24f4efab57f67384909d9408e42a74b973bfb/poc.py#L808-L816","type":"other"},{"url":"https://ubuntu.com/security/CVE-2026-129474","type":"other"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129474.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129474","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-22T01:25:09.729Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129474","license":"NVD terms of use","firstSeenAt":"2026-11-19T15:43:47.315Z"},{"name":"osv","at":"2026-11-24T21:14:42.849Z","url":"https://osv.dev/vulnerability/CVE-2026-129474","license":"CC-BY 4.0","firstSeenAt":"2026-11-24T21:14:42.849Z"},{"name":"euvd","at":"2026-11-22T12:58:18.101Z","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-130146","license":"ENISA","firstSeenAt":"2026-11-22T03:37:02.509Z"},{"name":"cvelistV5","at":"2026-11-23T21:31:05.198Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-129474","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T15:00:33.781Z"}],"firstSeenAt":"2026-11-19T15:00:33.781Z","publishedAt":"2026-11-19T14:43:04.000Z","modifiedAt":"2026-11-24T17:00:14.789Z"}