Vendors › PHP

CVE-2026-129501

Medium (6.3) EPSS 0.7% PHP · DOM

Double free during DOM XML serialization

PHP's modern DOM XML serializer can incorrectly share ownership of a generated namespace prefix between an element and its descendant. An application that calls saveXml() on attacker-controlled XML or HTML can consequently use and free the same allocation more than once, which can crash the PHP process.

Published2026-11-19
Updated2026-11-19
AffectedPHP versions >= 8.4.0, < 8.4.28; PHP versions >= 8.5.0, < 8.5.13
FixUpgrade to 8.4.28, 8.5.13 (first fixed release per supported branch).
CVEMesh analysisThe vulnerability is a crash in the PHP process due to incorrectly shared ownership of a generated namespace prefix, which can be used and freed more than once. Exploitation needs an application that calls saveXml() on attacker-controlled XML or HTML. The most important action is to upgrade to PHP version 8.4.28 or 8.5.13.
AI-generated — see the vendor advisory for the authoritative text.
Vendor advisoryhttps://github.com/php/php-src/security/advisories/GHSA-x8r7-mg3g-74hg

CVEs (1)

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