libxml2 through 2.15.4 Use-After-Free in xmlFreeNode via reader->faketext
- State
- Published
- Severity
- 5.7 Medium
- Published
- Nov 25, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 25, 2026
Description
libxml2 through 2.15.4 contains a heap use-after-free vulnerability that allows attackers to crash applications by triggering xmlFreeNode on a stale reader->faketext node after xmlTextReader reuse. Attackers can supply XML containing a namespace declaration to applications that read its value and reuse the reader, causing a freed document's dictionary read and process crash.
| Product | Versions |
|---|---|
| libxml2 GNOME | 2.15.4 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.7 Medium | VulnCheck | |
| 3.1 | 4.7 Medium | VulnCheck |
Weaknesses
- CWE-416 Use After Free
References
- https://gitlab.gnome.org/GNOME/libxml2/-/issues/1163Issue Tracker
- https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/503Patch
- https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/xmlreader.c#L2801-L2840Technical Details
- https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/xmlreader.c#L4714-L4830Technical Details
- VulnCheck Advisory: libxml2 through 2.15.4 Use-After-Free in xmlFreeNode via reader->faketextThird-Party Advisory
- https://gitlab.gnome.org/GNOME/libxml2/-/work_items/1163Exploit
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.