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

Published Updated

Querying the encoding of a reset libxml2 reader dereferences NULL and crashes the application; Linux desktop users should care.

CVSS score

Medium

5.7/10

CVSS 4.0 · Scored by VulnCheck Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
None listed
No fixed version published
Attack path
Local or same network
No login, a user must click or open something

What is CVE-2026-137074?

CVE-2026-137074 is a medium-severity null pointer dereference vulnerability in GNOME libxml2, published on 25 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-476

How severe is CVE-2026-137074?

CVE-2026-137074 scores 5.7 out of 10 under CVSS 4.0, which is medium severity. It was scored by VulnCheck.

Attack vector
Local
Attack complexity
High
Attack requirements
Present
Privileges required
None
User interaction
Passive
Confidentiality
None
Integrity
None
Availability
High

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

Which versions are affected by CVE-2026-137074?

1 open source package ship an affected version, including gnome/libxml2.

An affected version is only exploitable if your software calls xmlTextReaderConstEncoding, xmlCtxtReset or xmlGetActualEncoding. Many projects that include it are not exposed.

PackageAffectedFixed in
gnome/libxml2 GitHub
pkg:github/gnome/libxml2
From 2.12.6 to 2.15.4None

How do I fix CVE-2026-137074?

No fix has been published for CVE-2026-137074 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Check every result that can be empty before using it. More about Null pointer dereference.

Is CVE-2026-137074 being exploited?

There is no known exploitation of CVE-2026-137074 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-137074, DHI-giaw-726i-73ax-ew5i, GHSA-868x-42j3-ghpw, UBUNTU-CVE-2026-137074.

Is CVE-2026-137074 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free