CVE-2026-129501PHP ext-dom Double Free
NVD
Vulnerability Summary
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.
CVSS v4.0 Base Metrics — Score 6.3 (MEDIUM)
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NAttack VectorNetwork
Attack ComplexityLow
Attack RequirementsPresent
Privileges RequiredNone
User InteractionNone
Confidentiality (Vulnerable System)None
Integrity (Vulnerable System)None
Availability (Vulnerable System)Low
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Affected & Patched Versions
- PHP ext-dom >= 8.4.0, < 8.4.28
- PHP ext-dom >= 8.5.0, < 8.5.13
- PHP 8.4.28
- PHP 8.5.13
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run PHP ext-dom and which version.
- Update to a patched version listed above, then confirm the new version.
- Until you can update, follow the vendor workaround: Until then, avoid calling saveXml() on attacker-controlled Dom\XMLDocument or Dom\HTMLDocument instances. For HTML documents where XML output is not required, saveHtml() avoids the affected XML serializer. Process isolation and worker restart limits can contain individual crashes but do not remove the vulnerable behavior.
Timeline
- Nov 19, 2026Published
- Nov 19, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new PHP ext-dom CVEsYou are reading CVE-2026-129501. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 19, 2026 17:01 UTC