Skip to main content

PHP DOM EUVDEUVD-2026-130250

| CVE-2026-129501 MEDIUM
Double Free (CWE-415)
2026-11-19 php
6.3
CVSS 4.0 · Vendor: php
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted XML/HTML to vulnerable app
  2. Exploit
    Trigger double-free in DOM namespace map during saveXml()
  3. Execution
    Crash PHP worker process
  4. Impact
    Repeat requests to exhaust worker pool

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Double free prevention
Exploitation Conditions

Exploitation requires an application running PHP 8.4.x before 8.4.28 or 8.5.x before 8.5.13 that (1) parses attacker-controlled input with the modern DOM API (Dom\XMLDocument or Dom\HTMLDocument) and (2) serializes the resulting document with saveXml(). For the HTML path, only a crafted document followed by Dom\HTMLDocument::saveXml() is needed; for the XML path the state can arise when application code adds a namespaced attribute while the supplied document declares another prefix for that namespace. Input need not be malformed. Limiting factors: applications that do not XML-serialize untrusted documents are not affected; for HTML output, saveHtml() avoids the vulnerable XML serializer; and the legacy DOMDocument API is outside the stated affected classes. Process isolation and worker-restart limits can contain crashes but do not remove the behavior.

Impact

Signals are consistent and point to a real but moderate-priority issue rather than a top-tier emergency. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) with VA:L and VC:N/VI:N scores 6.3 (Medium) and correctly caps impact at availability only - the PHP advisory explicitly states code execution has not been demonstrated and no confidentiality or integrity impact has been established. The AT:P (attack requirements) metric reflects that exploitation depends on an application actually XML-serializing attacker-controlled documents, not on any attacker-uncontrolled runtime race. Exploitation status is 'no public exploit identified at time of analysis': the single reference is the GHSA advisory itself, with no PoC, and the CVE is not on CISA KEV. No EPSS score was supplied, so exploitation probability cannot be quantified from the input. The vuln.today Decision label is 'this_month' (not act_now/emergency), consistent with a DoS-only, config-dependent flaw in a very widely deployed runtime. The one data conflict worth flagging: the input Tags include 'RCE', which directly contradicts the advisory's statement that code execution is not demonstrated - treat this as DoS, not RCE. Net: patch within the normal monthly cycle; prioritize sooner only for internet-facing PHP 8.4/8.5 applications that parse and re-serialize untrusted XML/HTML via the modern DOM API.

Exploit ScenarioDerived

An attacker submits crafted (but well-formed) XML or HTML to a PHP application that parses it with Dom\XMLDocument or Dom\HTMLDocument and later calls saveXml() on the document. During serialization a generated namespace prefix is freed twice, corrupting the heap and crashing the PHP worker. Repeated requests crash workers on demand, exhausting the worker pool and causing denial of service; no public PoC is referenced and code execution has not been demonstrated.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 19, 2026

PHP processes can be crashed through a double free in the DOM extension's XML serializer used by Dom\XMLDocument and Dom\HTMLDocument in PHP 8.4.x before 8.4.28 and 8.5.x before 8.5.13. Unauthenticated remote attackers who get an application to parse attacker-controlled XML or HTML with these classes and then call saveXml() can trigger use and repeated freeing of the same namespace-prefix allocation, terminating PHP workers; repeated requests can degrade or exhaust a worker pool. Impact is limited to availability in the assessed vector (no confidentiality or integrity impact established), code execution has not been demonstrated, and no public exploit code was identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade PHP to 8.4.28 for the 8.4 branch or 8.5.13 for the 8.5 branch, as listed in the GHSA advisory (https://github.com/php/php-src/security/advisories/GHSA-x8r7-mg3g-74hg). If upgrading is not immediately possible, stop calling saveXml() on attacker-controlled Dom\XMLDocument or Dom\HTMLDocument instances; for HTML documents where XML output is not required, use saveHtml(), which avoids the affected XML serializer entirely, at the cost of output format changing. Process isolation plus worker restart limits can contain individual crashes but do not remove the vulnerable behaviour, and they consume worker capacity each time a crash occurs. The legacy DOMDocument API is outside the affected classes, so code paths can also be reworked onto it if the modern API is not otherwise required.

Affected VersionsENISA

PHP 8.4.0 <8.4.28
PHP 8.5.0 <8.5.13

Affected Packages

euvd php fix: 8.4.28, 8.5.13

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a memory-safety defect (CWE-415 double free, with an associated CWE-416 use-after-free) inside the namespace-prefix map that Dom\XMLDocument and Dom\HTMLDocument keep while serializing a document as XML. When the serializer must synthesize a prefix for an attribute whose namespace has no usable prefix, the generated prefix is owned by the element's map; descendants initially share that map and copy it on write when a further candidate prefix for an existing namespace URI is added. The vulnerable copy-on-write path duplicates the candidate list but leaves the copied pointers flagged as owned, so destroying the descendant's map frees a generated prefix still referenced by the ancestor. A later sibling then reads the freed value and destruction of the ancestor's map frees the same allocation again, corrupting ZendMM's free list; later allocations in the same request may alias, but converting that into type confusion or code execution requires application-specific allocation control and has not been shown. Valid, well-formed input is sufficient: namespaced attributes, nested namespace declarations and a subsequent sibling establish the state, and the HTML path needs only a crafted document followed by Dom\HTMLDocument::saveXml(). The legacy DOMDocument API is outside the affected classes, and the trigger details for each deployment mode are as described in the upstream advisory rather than inferred.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (php) PRIMARY 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
vuln.today AI 3.7 LOW

DoS-only (A:L, C/I:N); AV:N as input is remote; AC:H maps the vendor AT:P requirement that the app must serialize attacker-controlled documents via saveXml(); PR:N/UI:N since no auth or user interaction is needed.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (php).

CVSS VectorVendor: php

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 19, 2026 - 16:18 EUVD
CVE Published
Nov 19, 2026 - 14:44 cve.org
MEDIUM 6.3

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.7%
Top 48% exploitable
Prevalence
Ubiquitous
PHP runs a huge fraction of production web servers worldwide
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

33
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy