Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-137074: medium-severity vulnerability (CVSS 5.7) in GNOME libxml2.
What happened
Original description from the source: 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.
Why it matters
Medium severity, CVSS 5.7.
Affected products and versions
GNOME libxml2 >= 2.12.6, <= 2.15.4
| Product | Versions | Fixed in |
|---|---|---|
| GNOME libxml2 | >= 2.12.6, <= 2.15.4 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://gitlab.gnome.org/GNOME/libxml2/-/issues/1212 — CVE Program
- https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/parserInternals.c#L1743 — CVE Program
- https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/xmlreader.c#L2856 — CVE Program
- https://www.vulncheck.com/advisories/libxml2-2.12.6-through-2.15.4-null-pointer-dereference-via-xmltextreaderconstencoding — CVE Program
Weaknesses (CWE): CWE-476
Relevant change history
Published
Preliminary advisory published.