Double free during DOM XML serialization
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| PHP GroupPHP |
≥ 8.4.0, < 8.4.28→ 8.4.28 ≥ 8.5.0, < 8.5.13→ 8.5.13 |
8.4.28 8.5.13 |
| Bitnamiphp-min |
≥ 8.4.0, < 8.4.28→ 8.4.28 ≥ 8.5.0, < 8.5.13→ 8.5.13 |
8.4.28 8.5.13 |
| Bitnamilibphp |
≥ 8.4.0, < 8.4.28→ 8.4.28 ≥ 8.5.0, < 8.5.13→ 8.5.13 |
8.4.28 8.5.13 |
| Bitnamiphp |
≥ 8.4.0, < 8.4.28→ 8.4.28 ≥ 8.5.0, < 8.5.13→ 8.5.13 |
8.4.28 8.5.13 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Alpine Linux ALPINE-CVE-2026-129501 php85, php84 Fix available
- Debian DEBIAN-CVE-2026-129501 php8.4 Fix available
- Ubuntu UBUNTU-CVE-2026-129501 php8.5 Fix available
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- REDHAT Red Hat