Vendors › PHP

CVE-2026-129474

Critical (9.2) EPSS 21.2% PHP · core

Use-after-free in magic method backtraces can lead to remote code execution

PHP can access freed memory when collecting the arguments of a method handled by __call() or __callStatic() for a backtrace. On PHP 8.5 and later, an unauthenticated attacker may be able to trigger this through a crafted request that causes a fatal error while the application enters such a method.

Published2026-11-19
Updated2026-11-19
AffectedPHP versions >= 8.5.0, < 8.5.13
FixUpgrade to 8.5.13 (first fixed release per supported branch).
CVEMesh analysisThe vulnerability is a security flaw that allows an attacker to execute malicious code on a server by sending a specially crafted request. The conditions for exploitation are that the server is running PHP 8.5 or later, and the attacker can send a request that causes a fatal error while the application is handling a method call. The most important action is to upgrade to PHP 8.5.13, which is the first fixed release for this issue.
Vendor states: "On PHP 8.5 and later, an unauthenticated attacker may be able to trigger this through a crafted request that causes a fatal error while the application enters such a method."
AI-generated — see the vendor advisory for the authoritative text.
Vendor advisoryhttps://github.com/php/php-src/security/advisories/GHSA-8mjj-2r7p-4hg2

CVEs (1)

CVECWETypeImpactLinks
CVE-2026-129474———NVD · CVE.org · EUVD

CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.

Same CVE in other advisories

Open in the CVEMesh app Create a free account

Track this advisory against your own stack — add your assets and CVEMesh shows which advisories actually apply to the versions you run.

CVEMesh aggregates public vendor advisories as guidance; always verify against the vendor's official advisory before patching or upgrading.