CVE-2026-129501
MEDIUM 6.3CVSS 4.0Double free during DOM XML serialization
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.
- Published
- 19 Nov 2026
- Last modified
- 19 Nov 2026
- Assigned by
- security@php.net
- NVD status
- Awaiting Analysis
- Weakness
- CWE-415CWE-416
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@php.net (Secondary) | CVSS 4.0 | MEDIUM 6.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| CVE List | php | CVSS 4.0 | MEDIUM 6.3 | 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 |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | PHP Group | PHPcpe:2.3:a:php:php:*:*:*:*:*:*:*:* |
>= 8.4.0, < 8.4.28; >= 8.5.0, < 8.5.13 | 8.4.28, 8.5.13 |
References
- https://github.com/php/php-src/security/advisories/GHSA-x8r7-mg3g-74hg · vendor-advisory
History
- 25 Nov 2026 20:30 UTC · CVE List: first stored (published 19 Nov 2026)
- 25 Nov 2026 20:11 UTC · NVD: first stored (published 19 Nov 2026)