
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-129501 is a double free / use-after-free vulnerability in PHP's modern DOM XML serializer that can crash PHP processes and cause denial of service. It affects Dom\XMLDocument and Dom\HTMLDocument in PHP 8.4.0–8.4.27 and PHP 8.5.0–8.5.12. The flaw was published on November 19, 2026, with fixed versions 8.4.28 and 8.5.13 released simultaneously. It carries a CVSS v4.0 base score of 6.3 (Medium) (PHP Advisory).
The root cause is improper copy-on-write handling in PHP's DOM XML serializer (CWE-415: Double Free; CWE-416: Use After Free). When Dom\XMLDocument or Dom\HTMLDocument serializes a document via saveXml(), it maintains a namespace-prefix map per element. The serializer can generate a synthetic namespace prefix for an attribute; when a descendant element copies the ancestor's map via copy-on-write, the copied pointers are incorrectly marked as "owned" rather than "borrowed." Destroying the descendant's map frees the generated prefix still referenced by the ancestor; a later sibling can then access the freed value, and destroying the ancestor's map frees the same allocation a second time. The fix marks generated-prefix pointers copied into descendant lists as borrowed. Critically, the triggering input does not need to be malformed — valid XML or HTML combining namespaced attributes, nested namespace declarations, and a later sibling is sufficient (PHP Advisory).
The primary demonstrated impact is memory corruption and PHP process crash (denial of service). An attacker who can supply attacker-controlled XML or HTML to an application that parses it with the modern DOM API and then calls saveXml() can crash the PHP worker process; repeated requests can exhaust the application's worker pool, causing sustained service unavailability. While corrupting ZendMM's free list may theoretically allow later allocations to alias, no confidentiality or integrity impact has been demonstrated, and code execution has not been achieved through realistic application code (PHP Advisory).
No public proof-of-concept exploit code or in-the-wild exploitation has been reported as of the disclosure date. The EPSS score is 0.0, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. The NVD SSVC assessment classifies exploitation as "none" and the vulnerability as not automatable, reflecting the requirement that the target application must both parse attacker-controlled XML/HTML with the modern DOM API and subsequently call saveXml() — a specific but not uncommon pattern (PHP Advisory, Feedly).
Dom\XMLDocument or Dom\HTMLDocument, and then serializes the result with saveXml().saveXml(), the serializer's copy-on-write path incorrectly marks copied prefix pointers as owned, causing a double free and PHP process crash.php_error.log, php-fpm.log) showing segmentation faults or "double free" / "heap corruption" messages originating from DOM serialization code; repeated PHP-FPM worker restarts in a short time window.SIGSEGV, SIGABRT) correlated with requests that include XML or HTML bodies; PHP-FPM pool showing rapid worker churn.Upgrade to PHP 8.4.28 or PHP 8.5.13, which contain the fix that marks generated-prefix pointers copied into descendant lists as borrowed rather than owned. As an interim workaround, avoid calling saveXml() on Dom\XMLDocument or Dom\HTMLDocument instances that process attacker-controlled input; for HTML documents where XML output is not required, saveHtml() avoids the affected XML serializer path. Process isolation and PHP-FPM worker restart limits can contain the impact of individual crashes but do not eliminate the vulnerability (PHP Advisory).
The vulnerability was covered by several security news outlets and community blogs shortly after disclosure on November 19, 2026, including Infosecurity Magazine, CyberSecurityNews, Patchstack (with a WordPress-specific focus), and dev.to community posts. Patchstack highlighted the relevance to WordPress environments that use PHP's DOM XML serialization. AlmaLinux published a security release notice for their PHP packages. Overall community sentiment treated this as a moderate-severity issue warranting prompt patching, with no reports of active exploitation driving urgency (Patchstack, Infosecurity Magazine).
Fix availability across major Linux distributions and their releases.
bionic (esm-infra)
php7.2
devel
php8.5
focal (esm-infra)
php7.4
jammy
php8.1
noble
php8.3
resolute
php8.5: 8.5.4-0ubuntu1.6
trusty (esm-infra-legacy)
php5
xenial (esm-infra-legacy)
php7.0
RHEL 8
RHEL 9
php:8.4/php.src
RHEL 10
php8.4-0:8.4.28-1.el10_2.src
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."