{"id":"CVE-2026-129474","published":"2026-11-19T14:43:04Z","modified":"2026-11-22T00:37:55Z","title":"Use-after-free in magic method backtraces can lead to remote code execution","vendor":"PHP","product":"PHP","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.2,"severity":"CRITICAL","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.09341,"percentile":0.95512,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-8mjj-2r7p-4hg2","tags":["vendor-advisory"]},{"url":"https://access.redhat.com/security/cve/cve-2026-129474","tags":[]},{"url":"https://ubuntu.com/security/CVE-2026-129474","tags":[]},{"url":"https://github.com/murrez/php2shell/blob/a8e24f4efab57f67384909d9408e42a74b973bfb/poc.py#L808-L816","tags":["signature"]}],"priority":{"score":25.5,"factors":[{"name":"EPSS percentile","points":19.1},{"name":"CVSS severity","points":6.44}]},"vendorSlug":"php","affectedVersions":[{"vendor":"PHP Group","product":"PHP","versions":[">= 8.5.0, < 8.5.13"]}],"capec":[{"id":"CAPEC-129","name":"Pointer Manipulation"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-11-19T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"summary":{"text":"A use-after-free flaw in PHP's handling of backtraces for method calls routed through __call() or __callStatic() can read stale argument values that may point to freed memory. An attacker with remote network access who can supply enough request data to influence memory allocation may trigger it during a fatal error such as exceeding memory_limit, provided fatal_error_backtraces is enabled (the default) and zend.exception_ignore_args is disabled; the page notes that php.ini-production enables zend.exception_ignore_args and so prevents this.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:02:15Z"},"euvd":{"id":"EUVD-2026-130146","exploited":false,"provenance":"source"}}