Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted XML truncated inside an open element
-
ExploitContext reset frees DTD leaving stale validation state
-
ExecutionUse-after-free read in xmlValidatePopElement
-
ImpactCrash process and leak limited heap via error messages
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a specific, non-default usage pattern of libxml2: the consuming application must validate XML against a DTD using an xmlTextReader AND reuse/reset that reader's context (xmlCtxtReset) across documents, then feed it attacker-controlled XML that terminates prematurely while an element is still open - that truncation inside an open element is the concrete trigger. Limiting factors that reduce realistic risk below the raw score: the CVSS metrics require a user/application to process the supplied document (UI:P), the vector is scored local (AV:L), the attack has high complexity and a present attack requirement (AC:H/AT:P) reflecting the narrow configuration, and the payoff is capped at a crash plus limited heap disclosure through error messages - not arbitrary code execution. Applications that do not reuse DTD-validating readers with context reset are not affected. |
| Impact | This is a medium-severity (CVSS 4.0 base 5.8) use-after-free whose real-world priority is moderate, not urgent, and the signals are consistent rather than conflicting. The CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P) describes a flaw that is hard to trigger: it needs local delivery, a user to process the document, and specific conditions to be present, which depresses practical exploitability even though PR:N means no prior authentication. Impact is bounded - VA:H reflects a crash/DoS and VC:L reflects limited heap disclosure through error messages; there is no integrity impact (VI:N) and the description explicitly stops at crashes and 'limited heap disclosure,' not code execution. No EPSS score is provided, the CVE is not on CISA KEV, and the vuln.today Decision label is 'this_month' (not act_now/emergency), all of which point to routine patching rather than firefighting. The one amplifier is prevalence: libxml2 is ubiquitous, so the vulnerable code ships almost everywhere - but the specific vulnerable usage pattern (a DTD-validating xmlTextReader that is reused across documents via xmlCtxtReset) is narrow, so the exposed population is far smaller than libxml2's install base. Note a tension worth verifying: libxml2 is a library, so whether the real attack vector is truly local (AV:L, as scored) or network-reachable depends entirely on how the consuming application ingests XML - verify the delivery path per deployment. |
| Exploit ScenarioDerived | An application that validates XML against a DTD using xmlTextReader and reuses the reader across documents (invoking xmlCtxtReset) is given an attacker-supplied document that ends while an element is still open; xmlCtxtReset frees the DTD without popping stale validation states, so xmlValidatePopElement dereferences freed heap memory. Consistent with the CVSS metrics (AV:L/AC:H/AT:P/UI:P), this requires local delivery, a user/application to process the document, and the specific reader-reuse configuration, and it yields a crash plus limited heap disclosure via error messages rather than code execution. No confirmed working exploit code is published, though VulnCheck released a technical advisory describing the flaw. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Use-after-free in GNOME libxml2 2.9.10 through 2.15.4 allows a remote-supplied XML document that ends while an element is still open to crash an application that validates against a DTD with xmlTextReader and reuses that reader's context via xmlCtxtReset, with limited heap disclosure surfacing through error messages. The flaw is rated medium severity (CVSS 4.0 base 5.8; assessed CVSS 3.1 AV:L/AC:H/PR:N/UI:R, C:L/A:H) because exploitation demands a narrow, non-default usage pattern rather than any ordinary parse of hostile XML. No public exploit code or confirmed active exploitation was identified at time of analysis, and the vendor has published an upstream fix (merge request 503) addressing the stale validation state handling.
RemediationAI
Apply the vendor fix: patch status is "available from vendor" via the upstream merge request at https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/503, referenced from issue https://gitlab.gnome.org/GNOME/libxml2/-/issues/1163; no single tagged release version is stated in the supplied advisory data, so confirm the released libxml2 build from your distribution or the upstream repository before closing out, and prioritise the update anywhere libxml2 is embedded in XML-ingesting services. Because exploitation depends on a specific API usage pattern, the practical compensating control is to eliminate that pattern in dependent code: do not reuse a DTD-validating xmlTextReader across documents and do not call xmlCtxtReset on a reader whose validation state is mid-document - construct a fresh reader (and a fresh validation context) for each input, or drop DTD validation in favour of a pre-parse schema check. The trade-off is added per-request allocation cost for reader creation or the loss of DTD-driven validation semantics and entity handling, plus the need to audit and re-test every call site that currently recycles readers. Note that the vendor's fix is the only complete remediation; the API-usage changes reduce exposure but do not repair the library itself.
Affected VersionsENISA
Affected Packages
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's xmlTextReader is a streaming pull parser; when constructed with a DTD, each element push/pop is routed through xmlValidatePushElement/xmlValidatePopElement, which consult validation state hanging off the parser context's DTD. xmlCtxtReset reinitialises a context for reuse and frees the associated DTD, but does not unwind the reader's outstanding validation state, so a subsequent xmlValidatePopElement operates on state pointing into the freed DTD - a classic CWE-416 use-after-free that manifests as invalid heap reads during error formatting. The affected component is the xmlreader.c validation path (the v2.15.4 source references point at the push/pop element region and the reader's context-reset handling). The CPE cpe:2.3:a:gnome:libxml2:*:*:*:*:*:*:*:* covers the stated 2.9.10 through 2.15.4 range; libxml2 is a ubiquitous transitive dependency, so exposure is determined far more by how a consuming application drives the API than by the library version alone. The precise trigger is a document that terminates inside an open element after a reset; the available sources do not describe any other route to the stale state.
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
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
Narrow reader-reuse-plus-reset usage and a document malformed at a precise point give AC:H and UI:R; impact is a crash (A:H) plus limited heap leak (C:L) with no integrity impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
GNOME libxml2 2.9.10 through 2.15.4 contains a use-after-free vulnerability in xmlValidatePopElement because xmlCtxtReset frees the DTD without popping stale validation states. Attackers supplying an XML document ending inside an element to an application reusing a DTD-validating xmlTextReader can trigger heap reads, causing crashes and limited heap disclosure via error messages.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
backend/comics/comics-document.c (aka the comic book backend) in GNOME Evince before 3.24.1 allows remote attackers to e
Network Manager VPNC plugin (aka networkmanager-vpnc) before version 1.2.6 is vulnerable to a privilege escalation attac
gio/gsocks4aproxy.c in GNOME GLib before 2.82.1 has an off-by-one error and resultant buffer overflow because SOCKS4_CON
Multiple integer overflows in the (1) vnc_connection_server_message and (2) vnc_color_map_set functions in gtk-vnc befor
GNOME OCRFeeder before 0.8.4 allows OS command injection via shell metacharacters in a PDF or image filename. Rated crit
libsoup from versions 2.65.1 until 2.68.1 have a heap-based buffer over-read because soup_ntlm_parse_challenge() in soup
Gnome Pango 1.42 and later is affected by: Buffer Overflow. Rated critical severity (CVSS 9.8), this vulnerability is re
In GNOME GLib 2.56.1, g_markup_parse_context_end_parse() in gmarkup.c has a NULL pointer dereference. Rated critical sev
Heap-based buffer overflow in GLib's g_escape_uri_string() function allows local attackers to achieve high-integrity and
An exploitable heap overflow vulnerability exists in the gdk_pixbuf__jpeg_image_load_increment functionality of Gdk-Pixb
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
An exploitable integer overflow vulnerability exists in the tiff_image_parse functionality of Gdk-Pixbuf 2.36.6 when com
EUVD-2026-135779
GHSA-3cgc-j9gc-hw37
NVD
CVE.org
EPSS
Exploit-DB