Skip to main content

libxml2 EUVDEUVD-2026-135778

| CVE-2026-137068 MEDIUM
Use After Free (CWE-416)
2026-11-25 VulnCheck GHSA-jh66-gq9h-mr4w
5.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Supply crafted XML with namespace declaration
  2. Delivery
    Application reads namespace value and reuses reader
  3. Exploit
    Trigger xmlFreeNode on stale faketext node
  4. Execution
    Read freed document dictionary (use-after-free)
  5. Impact
    Crash application process (DoS)

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 an application that uses libxml2's xmlTextReader (xmlTextReader) interface AND reads the value of a namespace declaration from attacker-supplied XML AND reuses the same reader instance afterward - all three application-side behaviors are prerequisites, not attacker-controlled, which is why complexity is high. The attacker's role is to supply XML containing a namespace declaration that the vulnerable code path processes, triggering xmlFreeNode on a stale reader->faketext node and a subsequent read of the freed document's dictionary. Limiting factors: the CVSS 4.0 vector is local (AV:L) with high complexity (AC:H), a present attack requirement (AT:P), and required passive user interaction (UI:P), and impact is strictly availability (process crash) with no confidentiality or integrity effect - so the realistic outcome is denial of service only, confined to applications that follow the specific read-namespace-then-reuse-reader pattern. Applications that do not reuse the reader, or do not read namespace values, are not exposed.

Impact

All decision signals point to a moderate, denial-of-service-only issue rather than a top-tier priority. The supplied CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P, score 5.7) describes a local attack vector with high attack complexity, a present attack requirement (AT:P), and required passive user interaction, with impact confined to availability (VA:H) - no confidentiality or integrity impact. PR:N means no authentication is required, so unauthenticated triggering is in scope, but the AC:H/AT:P/UI:P combination means exploitation is far from trivial and is conditioned on a specific application usage pattern. Exploitation status is 'no confirmed active exploitation': the CVE is not in CISA KEV, and no EPSS probability was provided in the input, so widespread opportunistic exploitation cannot be quantified from the data given. A public PoC reference exists via the VulnCheck advisory, but it is not verified as working exploit code, so PoC availability should not be conflated with active exploitation. The vuln.today decision label is 'this_month' (not act_now or emergency), consistent with a patch-on-normal-cadence posture. The one amplifying factor is prevalence: libxml2 is ubiquitous, so the aggregate attack surface is large even though each individual instance is only exploitable for a crash under specific conditions. Net: a real but bounded issue - worth patching on routine cycles, not an emergency. Missing data to note explicitly: no EPSS score and no KEV status were supplied, so the real-world exploitation frequency is unquantified.

Exploit ScenarioDerived

An attacker supplies crafted XML containing a namespace declaration to an application built on libxml2's xmlTextReader interface that reads the namespace value and then reuses the same reader instance; parsing triggers a heap use-after-free on a stale reader->faketext node (a freed document's dictionary is read), crashing the process. A public PoC reference exists via the VulnCheck advisory, but it is not verified as working exploit code. The CVSS 4.0 vector's local attack vector, high complexity, and required user interaction mean the realistic outcome is denial of service against the affected application, not code execution.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 25, 2026

Heap use-after-free in libxml2 through 2.15.4 allows attacker-supplied XML to crash applications that use xmlTextReader, read a namespace declaration value, and then reuse the same reader; the vulnerable path calls xmlFreeNode on a stale reader->faketext node and later reads a freed document dictionary. A vendor patch is referenced, and no public exploit identified at time of analysis. Impact is availability-only and depends on the specific application-side read-namespace-then-reuse-reader pattern, making this a moderate denial-of-service issue rather than a top-tier priority.

RemediationAI

Vendor patch is available via libxml2 GitLab merge request 503, tracked in issue 1163, with the VulnCheck advisory at https://www.vulncheck.com/advisories/libxml2-through-2.15.4-use-after-free-in-xmlfreenode-via-reader-faketext; the provided data does not specify an exact released fix version, so upgrade to a libxml2 release that includes merge request 503 and confirm the fixed version against the vendor advisory. If immediate upgrade is not possible, review applications that use xmlTextReader and eliminate or guard the pattern of reading a namespace declaration value and then reusing the same reader instance; this is a specific compensating control because the vulnerable path requires that application-side behavior, but changing reader lifetime or reuse may require refactoring and could alter parsing behavior, so it is not a complete substitute for the vendor fix. Applications that process untrusted XML should be checked first for the read-namespace-then-reuse-reader pattern, and any temporary code changes should be validated to ensure XML parsing behavior remains correct.

Affected VersionsENISA

libxml2 0 ≤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 a widely used XML parsing library, and the CPE cpe:2.3:a:gnome:libxml2:*:*:*:*:*:*:*:* identifies gnome libxml2 through 2.15.4 as the affected product. The root cause is CWE-416, a use-after-free: when an application uses the xmlTextReader interface, reads the value of a namespace declaration from attacker-supplied XML, and then reuses the same reader instance, the code can call xmlFreeNode on a stale reader->faketext node and subsequently read the freed document's dictionary, leading to a process crash. The CVSS 4.0 vector is local (AV:L), high complexity (AC:H), with a present attack requirement (AT:P), no privileges required (PR:N), passive user interaction (UI:P), and high availability impact only (VC:N/VI:N/VA:H/SC:N/SI:N/SA:N); the independent CVSS 3.1 assessment similarly rates AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H. Exploitation therefore depends on all three application-side behaviors, which are prerequisites rather than attacker-controlled, and applications that do not read namespace values or do not reuse the reader are not exposed.

Know when Libxml2 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 xmlTextReader reuse pattern and attacker-supplied XML, so AV:L and AC:H with UI:R; impact is a process crash only, so C:N/I:N and A:H.

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

libxml2 through 2.15.4 contains a heap use-after-free vulnerability that allows attackers to crash applications by triggering xmlFreeNode on a stale reader->faketext node after xmlTextReader reuse. Attackers can supply XML containing a namespace declaration to applications that read its value and reuse the reader, causing a freed document's dictionary read and process crash.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Ubiquitous
core XML parsing library embedded across countless applications, languages, and OSes
Data Quality
4 sources
Confidence: Medium

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.2%
Patch available Yes
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· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

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

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.

CVE-2025-6021 HIGH POC
7.5 Jun 12

Stack-based buffer overflow in libxml2's xmlBuildQName function allows remote unauthenticated attackers to crash affecte

CVE-2016-4658 CRITICAL
9.8 Sep 25

xpointer.c in libxml2 before 2.9.5 (as used in Apple iOS before 10, OS X before 10.12, tvOS before 10, and watchOS befor

CVE-2016-1762 HIGH POC
8.1 Mar 24

The xmlNextChar function in libxml2 before 2.9.4 allows remote attackers to cause a denial of service (heap-based buffer

CVE-2016-1834 HIGH POC
7.8 May 20

Heap-based buffer overflow in the xmlStrncat function in libxml2 before 2.9.4, as used in Apple iOS before 9.3.2, OS X b

CVE-2016-1840 HIGH POC
7.8 May 20

Heap-based buffer overflow in the xmlFAParsePosCharGroup function in libxml2 before 2.9.4, as used in Apple iOS before 9

CVE-2024-34459 HIGH POC
7.5

Alpine Linux: libxml2 fixed in 2.12.7-r0

CVE-2022-40303 HIGH
7.5 Nov 23

An issue was discovered in libxml2 before 2.10.3. Rated high severity (CVSS 7.5), this vulnerability is remotely exploit

CVE-2017-9047 HIGH POC
7.5 May 18

A buffer overflow was discovered in libxml2 20904-GITv2.9.4-16-g0741801. Rated high severity (CVSS 7.5), this vulnerabil

CVE-2016-4447 HIGH POC
7.5 Jun 09

The xmlParseElementDecl function in parser.c in libxml2 before 2.9.4 allows context-dependent attackers to cause a denia

CVE-2017-16932 HIGH
7.5 Nov 23

parser.c in libxml2 before 2.9.5 does not prevent infinite recursion in parameter entities. Rated high severity (CVSS 7.

CVE-2016-4483 HIGH POC
7.5 Apr 11

The xmlBufAttrSerializeTxtContent function in xmlsave.c in libxml2 allows context-dependent attackers to cause a denial

CVE-2013-1969 HIGH POC
7.5 Apr 25

Multiple use-after-free vulnerabilities in libxml2 2.9.0 and possibly other versions might allow context-dependent attac

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