Vendors › PHP

CVE-2026-129182

Critical (9.2) EPSS 24.0% PHP · core

Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown

As part of CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp), PHP 8.5.12 fixes a generic use-after-free of the last_fatal_error_backtrace global by clearing it during executor shutdown. Further scenarios have been discovered in which a fatal diagnostic during later shutdown work repopulates the global.

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 use-after-free error in PHP, where a fatal error message is reused after the PHP process has shut down. The advisory does not state exploitation conditions. The most important action is to upgrade to PHP version 8.5.13.
AI-generated — see the vendor advisory for the authoritative text.
Vendor advisoryhttps://github.com/php/php-src/security/advisories/GHSA-2fjv-p558-g82m

CVEs (1)

CVECWETypeImpactLinks
CVE-2026-129182———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.