Skip to main content

GNOME libxml2 CVE-2026-137074

| EUVDEUVD-2026-135772 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-11-25 VulnCheck GHSA-868x-42j3-ghpw
5.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach vulnerable reader code path
  2. Exploit
    Reset reader via xmlReaderNewWalker (ctxt->input NULL)
  3. Impact
    Query encoding, NULL deref crashes process (DoS)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an embedding application to use libxml2's xmlReader walker API in a specific sequence: reset a reader with xmlReaderNewWalker() (which invokes xmlCtxtReset(), leaving ctxt->input NULL) and then call xmlTextReaderConstEncoding() on that reset reader, causing xmlGetActualEncoding() to read ctxt->input->flags without a NULL check. This is not reachable through ordinary document parsing - it depends on this particular application-driven API usage. Limiting factors: the CVSS vector is local (AV:L) with high attack complexity (AC:H), a present attack requirement (AT:P), and passive user interaction (UI:P); impact is availability-only (process crash/DoS) with no confidentiality or integrity effect, and reachability is gated by whether the application exposes this code path to attacker influence.

Impact

This is a medium-severity (CVSS 4.0 base 5.7) availability-only defect, and the combined signals point to a low operational priority rather than an urgent one. The provided CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H) describes a local attack with high complexity, a present attack requirement (AT:P), and passive user interaction, with impact limited to denial of service - no confidentiality or integrity loss. There is no KEV listing and no EPSS score in the input, so there is no evidence of active or probable exploitation; exploitation status is 'no public exploit identified at time of analysis' (the references are the GNOME GitLab issue #1212 and a VulnCheck advisory, not confirmed working exploit code). The vuln.today decision label is 'this_month', consistent with a non-emergency, schedule-the-patch posture rather than act_now. One important caveat to verify: the crash is reached only when application code drives a specific libxml2 reader API sequence (reset via xmlReaderNewWalker() then xmlTextReaderConstEncoding()), so whether any given deployment is actually reachable by an attacker depends on how the embedding application uses the library - this is more a robustness bug than a broadly attacker-controllable DoS. Net: real but low-priority; patch on a normal maintenance cycle.

Exploit ScenarioDerived

An application that uses libxml2's xmlReader walker API resets a reader with xmlReaderNewWalker() (which calls xmlCtxtReset(), leaving ctxt->input NULL) and then queries the document encoding via xmlTextReaderConstEncoding(); xmlGetActualEncoding() dereferences ctxt->input->flags without a NULL check, crashing the process. No confirmed working exploit code is provided - the GNOME GitLab issue #1212 and VulnCheck advisory describe the trigger - and because the vector is local with high complexity and passive user interaction, impact is limited to a denial-of-service crash.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 25, 2026

GNOME libxml2 2.12.6 through 2.15.4 can crash an embedding application through a NULL pointer dereference, producing an availability-only denial of service. The fault requires the application to reset a reader with xmlReaderNewWalker() and then call xmlTextReaderConstEncoding(), leaving ctxt->input NULL before xmlGetActualEncoding() reads its flags field; ordinary document parsing does not reach it. The supplied CVSS 4.0 base score is 5.7 (local, high complexity, PR:N, UI:P), no CISA KEV entry is present in the supplied data, and no public exploit was identified at time of analysis.

RemediationAI

No vendor-released patch identified at time of analysis; the supplied references point to the upstream issue and affected v2.15.4 source, not to a fixed release. Consumers should track https://gitlab.gnome.org/GNOME/libxml2/-/issues/1212 for a fix and upgrade libxml2 once a release later than 2.15.4 is published. Until then, the practical mitigation is at the embedding layer: avoid calling xmlTextReaderConstEncoding() on a reader after xmlReaderNewWalker() has reset it, or add a NULL check for ctxt->input before invoking the encoding query; this prevents the crash but requires code changes in every affected application and does not fix other potential uses of the API. Do not rely on parsing-time input filtering, because the fault is triggered by the application's API sequence rather than by document content.

Affected VersionsENISA

libxml2 2.12.6 ≤2.15.4

Affected Packages

euvd libxml2 no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libxml2 is GNOME's XML parsing library, and the xmlReader API provides a streaming pull parser. xmlReaderNewWalker() resets an existing reader by invoking xmlCtxtReset(); in the affected versions that reset leaves ctxt->input as NULL. A later call to xmlTextReaderConstEncoding() reaches xmlGetActualEncoding(), which dereferences ctxt->input->flags to determine the document encoding without a NULL check, so the process crashes. This is CWE-476 (NULL pointer dereference). The code path is application-driven: it requires the embedding program to perform the reset-and-encoding-query sequence, not merely parse hostile XML. The CVSS 4.0 vector is AV:L/AC:H/AT:P/PR:N/UI:P with availability-only impact (VC:N/VI:N/VA:H/SC:N/SI:N/SA:N), and the independent CVSS 3.1 assessment is AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H, consistent with a local, complex, availability-only crash. No CISA KEV status or exploit reference was supplied.

Know when Gnome gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.7 MEDIUM
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
vuln.today AI 4.7 MEDIUM

Trigger depends on a specific local, application-driven reader-reset-then-query sequence, so AV:L/AC:H/UI:R; impact is a process crash only, hence C:N/I:N/A:H and scope unchanged.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 87% exploitable
Prevalence
Ubiquitous
libxml2 is a core XML library embedded across GNOME, Linux, and countless applications
Data Quality
2 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Gnome

View all
CVE-2017-1000083 HIGH POC
7.8 Sep 05

backend/comics/comics-document.c (aka the comic book backend) in GNOME Evince before 3.24.1 allows remote attackers to e

CVE-2018-10900 HIGH POC
7.8 Jul 26

Network Manager VPNC plugin (aka networkmanager-vpnc) before version 1.2.6 is vulnerable to a privilege escalation attac

CVE-2024-52533 CRITICAL POC
9.8 Nov 11

gio/gsocks4aproxy.c in GNOME GLib before 2.82.1 has an off-by-one error and resultant buffer overflow because SOCKS4_CON

CVE-2017-5885 CRITICAL POC
9.8 Feb 28

Multiple integer overflows in the (1) vnc_connection_server_message and (2) vnc_color_map_set functions in gtk-vnc befor

CVE-2022-27811 CRITICAL POC
9.8 Mar 24

GNOME OCRFeeder before 0.8.4 allows OS command injection via shell metacharacters in a PDF or image filename. Rated crit

CVE-2019-17266 CRITICAL POC
9.8 Oct 06

libsoup from versions 2.65.1 until 2.68.1 have a heap-based buffer over-read because soup_ntlm_parse_challenge() in soup

CVE-2019-1010238 CRITICAL POC
9.8 Jul 19

Gnome Pango 1.42 and later is affected by: Buffer Overflow. Rated critical severity (CVSS 9.8), this vulnerability is re

CVE-2018-16428 CRITICAL POC
9.8 Sep 04

In GNOME GLib 2.56.1, g_markup_parse_context_end_parse() in gmarkup.c has a NULL pointer dereference. Rated critical sev

CVE-2025-13601 HIGH POC
7.7 Nov 26

Heap-based buffer overflow in GLib's g_escape_uri_string() function allows local attackers to achieve high-integrity and

CVE-2017-2862 HIGH POC
7.8 Sep 05

An exploitable heap overflow vulnerability exists in the gdk_pixbuf__jpeg_image_load_increment functionality of Gdk-Pixb

CVE-2016-6855 HIGH POC
7.5 Sep 07

Eye of GNOME (aka eog) 3.16.5, 3.17.x, 3.18.x before 3.18.3, 3.19.x, and 3.20.x before 3.20.4, when used with glib befor

CVE-2017-2870 HIGH POC
7.8 Sep 05

An exploitable integer overflow vulnerability exists in the tiff_image_parse functionality of Gdk-Pixbuf 2.36.6 when com

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy