CVE Watchtower

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.
Severity Level
MEDIUM(6.3)
Published Date
Nov 19, 2026
Last Modified
Nov 19, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Published
EPSS Score (30-Day)
0.65%Probability
Root Weakness (CWE)
The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations.
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:N
Attack 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

Affected Versions
  • PHP ext-dom >= 8.4.0, < 8.4.28
  • PHP ext-dom >= 8.5.0, < 8.5.13
Patched Versions
  • PHP 8.4.28
  • PHP 8.5.13

What to do

Fix it during your normal patch cycle. No exploitation is confirmed yet.

  1. Check whether you run PHP ext-dom and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. 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 alerts

Data last checked: Nov 19, 2026 17:01 UTC