# CVE-2026-137074: libxml2 2.12.6 through 2.15.4 NULL Pointer Dereference via xmlTextReaderConstEncoding()

- Priority: **Routine**
- Reason: Not severe (CVSS 5.7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-25 · Modified: 2026-11-25
- Aliases: DEBIAN-CVE-2026-137074, UBUNTU-CVE-2026-137074
- Record: https://cvemate.com/vulnerability/CVE-2026-137074 · JSON: https://cvemate.com/vulnerability/CVE-2026-137074/json

## Description

```text
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.
```

## Signals

- CVSS: 5.7 medium (v4.0, CVE.org) CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.27%, percentile 20.504%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libxml2 (Debian): All versions (No fix recorded)
- ubuntu libxml2 (Ubuntu): All versions (No fix recorded)
- gnome libxml2: ≥ 2.12.6, ≤ 2.15.4

## References

- <https://gitlab.gnome.org/GNOME/libxml2/-/issues/1212>
- <https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/parserInternals.c#L1743>
- <https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/xmlreader.c#L2856>
- <https://www.vulncheck.com/advisories/libxml2-2.12.6-through-2.15.4-null-pointer-dereference-via-xmltextreaderconstencoding>
- <https://security-tracker.debian.org/tracker/CVE-2026-137074>
- <https://ubuntu.com/security/CVE-2026-137074>
- <https://www.cve.org/CVERecord?id=CVE-2026-137074>
- <https://gitlab.gnome.org/GNOME/libxml2/-/work_items/1212>

---

Data as of 2026-12-05T02:55:24.776Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
