GNOME libxml2 2.9.10 through 2.15.4 Use-After-Free via xmlValidatePopElement
- State
- Published
- Severity
- 5.8 Medium
- Published
- Nov 25, 2026
- Updated
- Nov 27, 2026
- Reserved
- Nov 25, 2026
Description
GNOME libxml2 2.9.10 through 2.15.4 contains a use-after-free vulnerability in xmlValidatePopElement because xmlCtxtReset frees the DTD without popping stale validation states. Attackers supplying an XML document ending inside an element to an application reusing a DTD-validating xmlTextReader can trigger heap reads, causing crashes and limited heap disclosure via error messages.
| Product | Versions |
|---|---|
| libxml2 GNOME | 2.9.10 through 2.15.4 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.8 Medium | VulnCheck | |
| 3.1 | 5.3 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#L4714-L4830Technical Details
- https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/xmlreader.c#L2201-L2238Technical Details
- VulnCheck Advisory: GNOME libxml2 2.9.10 through 2.15.4 Use-After-Free via xmlValidatePopElementThird-Party Advisory
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.