Double free during DOM XML serialization. The XML serializer of Dom\XMLDocument and Dom\HTMLDocument can share ownership of a generated namespace pref...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:14.04:LTSphp5 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:16.04:LTSphp7.0 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSphp7.2 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:20.04:LTSphp7.4 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSphp8.1 |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSphp8.3 |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10php8.5 |
< 8.5.9-0ubuntu2.2→ 8.5.9-0ubuntu2.2 |
8.5.9-0ubuntu2.2 |
| Ubuntu:26.04:LTSphp8.5 |
< 8.5.4-0ubuntu1.6→ 8.5.4-0ubuntu1.6 |
8.5.4-0ubuntu1.6 |
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: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory ubuntu.com
- report ubuntu.com
- report cve.org
- report github.com