libxml2 2.12.6 through 2.15.4 NULL Pointer Dereference via xmlTextReaderConstEncoding()
- State
- Published
- Severity
- 5.7 Medium
- Published
- Nov 25, 2026
- Updated
- Nov 25, 2026
- Reserved
- Nov 25, 2026
Description
GNOME libxml2 2.12.6 through 2.15.4 contains a NULL pointer dereference vulnerability in xmlTextReaderConstEncoding() after a reader is reset with xmlReaderNewWalker(). Because xmlCtxtReset() leaves ctxt->input NULL, querying the document encoding makes xmlGetActualEncoding() read ctxt->input->flags without a check, crashing the application and causing denial of service.
| Product | Versions |
|---|---|
| libxml2 GNOME | 2.12.6 through 2.15.4 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.7 Medium | VulnCheck | |
| 3.1 | 4.7 Medium | VulnCheck |
Weaknesses
- CWE-476 NULL Pointer Dereference
References
- https://gitlab.gnome.org/GNOME/libxml2/-/issues/1212Issue Tracker
- https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/parserInternals.c#L1743Technical Details
- https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/xmlreader.c#L2856Technical Details
- VulnCheck Advisory: libxml2 2.12.6 through 2.15.4 NULL Pointer Dereference via xmlTextReaderConstEncoding()Third-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.