← VULNERABILITIES

CVE-2026-129501

Double free during DOM XML serialization

Medium · 6.3Fix available
CVSS
6.3
EPSS
0.65% (p53)
Published
2026-11-19
Age
15d old
Modified
2026-11-19
Product
PHP Group PHP

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Description

Double free during DOM XML serialization. The XML serializer of Dom\XMLDocument and Dom\HTMLDocument can share ownership of a generated namespace prefix between the namespace-prefix maps of an element and a descendant, so the prefix is used after being freed and then freed a second time. The document does not need to be malformed. An application that parses attacker-controlled XML or HTML with these classes and serializes it with saveXml() can be crashed, and repeated requests can cause denial of service. Code execution has not been demonstrated. This issue affects PHP versions 8.4.* before 8.4.28 and 8.5.* before 8.5.13.

Fixed in

8.4.28 · 8.5.13

Affected packages

EcosystemPackageRangeFixed
vendorPHP>=8.4.0, <8.4.288.4.28
vendorPHP>=8.5.0, <8.5.138.5.13

Sources

  • NVD · first seen 15d ago · NVD terms of use
  • CVE List · first seen 15d ago · CVE Terms of Use

References

JSON