Skip to content
Threat Brief

← All advisories

CVE-2026-129501

Medium 6.3No known exploitationFix available

Double free during DOM XML serialization

Record last updated

CVSS score

6.3

Medium on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.7%

Higher than 52% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-415, CWE-416

Patching and mitigation

Patch status
Fix available (source: CVE record (php))
Fix documented (source date)
Mitigation
None documented
Vendor guidance
github.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
PHP GroupPHPfrom 8.4.0 before 8.4.288.4.28CVE Program
PHP GroupPHPfrom 8.5.0 before 8.5.138.5.13CVE Program

Timeline

  1. Disclosure

    CVE record published by php

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by CVE record (php)

    Source: CVE record (php) (opens in a new tab)

Vendor guidance and references