Double free in PHP - CVE-2026-129501

 

Double free in PHP - CVE-2026-129501

Published: November 19, 2026


Vulnerability identifier: #VU167916
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-129501
CWE-ID: CWE-415
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service by crashing a PHP process.

The vulnerability exists due to a double free in PHP's modern DOM XML serializer when an application calls saveXml() on a DomXMLDocument or DomHTMLDocument parsed from untrusted input. The serializer incorrectly treats a generated namespace prefix as owned by both an ancestor element and a descendant, allowing the same allocation to be freed twice. A remote attacker can supply a crafted XML or HTML document that triggers this memory corruption during serialization to cause a denial of service.


Affected software

PHP
Fedora
php

How to mitigate CVE-2026-129501

Install security update from vendor's website.

PHP - addressed in versions 8.4.28, 8.5.13
php - addressed in versions 8.4.28-2.fc43, 8.5.13-1.fc44, 8.5.13-1.fc45

External References

Related Security Bulletins