Skip to main content

libxml2 EUVDEUVD-2026-38232

| CVE-2026-6653 HIGH
Use After Free (CWE-416)
2026-06-22 canonical GHSA-v4qw-p44r-qhfg
7.0
CVSS 4.0 · Vendor: canonical
View

Attack ChainAIDerived

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

  1. Access
    Identify XML-accepting endpoint backed by libxml2
  2. Delivery
    Craft DOCTYPE with malicious internal-subset entities
  3. Exploit
    Submit document to parser
  4. Execution
    Trigger UAF in xmlParseInternalSubset
  5. Impact
    Crash parser worker / denial of service

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

The target application must link against GNOME libxml2 in the 2.9.11-2.11.0 range and must parse attacker-controlled XML with DTD/internal-subset processing enabled (the xmlParseInternalSubset code path is only reached when the document contains a DOCTYPE declaration with an inline '[...]' subset and entity resolution is permitted). No authentication, privilege, or user interaction is required (PR:N/UI:N), but CVSS AC:H indicates the use-after-free is not deterministic - successful triggering depends on heap state and parameter-entity expansion ordering, so repeated attempts or specific document structures may be necessary. Applications that have explicitly disabled DTD loading and entity substitution (e.g. XML_PARSE_NOENT/XML_PARSE_DTDLOAD off, or lxml resolve_entities=False) are not reachable through this path.

Impact

The signals are mixed and worth reading carefully. The supplied CVSS 4.0 vector (AV:N/AC:H/AT:N/PR:N/UI:N) confirms remote, unauthenticated reachability but flags high attack complexity, which is consistent with use-after-free conditions that depend on heap layout and entity-expansion ordering. E:P confirms publicly available exploit code exists, but there is no CISA KEV listing and no EPSS score was provided, so widespread automated exploitation is not evidenced. Importantly, the supplied CVSS 4.0 metrics claim VC:H/VI:L/VA:L while the textual description states only denial-of-service - this is a meaningful conflict: either the vendor scored conservatively for a UAF that could in principle leak memory, or the score is overstated relative to demonstrated impact; defenders should treat this as DoS-confirmed and information-disclosure-possible until vendor analysis clarifies. Practical risk is highest for servers that parse attacker-supplied XML (SOAP, SAML, RSS, OOXML/ODF, configuration import).

Exploit ScenarioDerived

An attacker submits a specially crafted XML document - for example via a public SOAP endpoint, SAML assertion, RSS feed, OOXML upload, or configuration import - whose DOCTYPE internal subset contains entity declarations engineered to trigger the dangling-pointer condition in xmlParseInternalSubset. When the libxml2-backed parser processes the internal subset, the freed entity object is dereferenced, crashing the worker process and denying service; given that proof-of-concept code exists per CVSS E:P, weaponization against any internet-exposed XML parser using a vulnerable libxml2 build is straightforward, though the AC:H rating implies the crash may not be deterministic on every run.

Act Now Prioritize within 24-48h. Why: Active threat signals + CRITICAL/HIGH severity.
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 22, 2026

Use-after-free in libxml2's xmlParseInternalSubset function affects GNOME libxml2 versions 2.9.11 through 2.11.0 and can be triggered remotely by crafted XML containing abusive entity resolution, leading to denial of service of any application that parses untrusted XML with this library. Publicly available exploit code exists (CVSS 4.0 E:P) but the issue is not listed in CISA KEV, indicating proof-of-concept demonstration rather than confirmed active exploitation. The flaw was disclosed by Canonical and tracked in GNOME GitLab work item 1058 and Ubuntu Launchpad bug 2141260.

RemediationAI

No vendor-released patched libxml2 version is identified at time of analysis - the available references point to a GNOME GitLab work item and a Launchpad bug rather than a tagged release, so monitor https://gitlab.gnome.org/GNOME/libxml2/-/work_items/1058 for the fix commit and upgrade to the first GNOME-tagged release above 2.11.0 that explicitly references CVE-2026-6653, and pick up the corresponding distribution backport (Ubuntu USN tied to LP#2141260) when published. Until a fix lands, compensating controls include disabling DTD and external/parameter entity processing in calling applications (for example by setting XML_PARSE_NOENT off and XML_PARSE_DTDLOAD off, or in lxml passing resolve_entities=False and load_dtd=False), refusing XML documents that contain a DOCTYPE/internal subset at an upstream gateway or WAF, and constraining XML parsers to run in sandboxed or auto-restarting workers so a crash does not take down the parent service - the trade-off is that legitimate DTD-dependent workflows (some SOAP, OOXML import, legacy XHTML) will break and must be allowlisted explicitly.

Affected VersionsENISA

libxml2 2.9.11 <2.11.0

Affected Packages

euvd libxml2 fix: 2.11.0

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 the GNOME C-language XML parser embedded in countless downstream consumers (Python lxml, PHP, Ruby, Safari/WebKit, GNOME desktop, many Linux distribution components). xmlParseInternalSubset is the internal-DTD parsing routine that handles the '[ ... ]' block of a DOCTYPE declaration including parameter entity expansion. CWE-416 use-after-free here means that a heap object representing entity or DTD state is freed during entity resolution while another code path still holds and dereferences a pointer to it; the description explicitly attributes the dangling reference to 'improper entity resolution handling', which is a recurring failure mode in libxml2's recursive entity machinery.

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 (canonical) PRIMARY 7.0 HIGH
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 5.9 MEDIUM

Remotely reachable via crafted XML with no auth or interaction; UAF triggering depends on heap/entity ordering so AC:H; description limits impact to denial of service, hence C:N/I:N/A:H.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat 5.9 MEDIUM

Primary rating from Vendor (canonical).

CVSS VectorVendor: canonical

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jun 22, 2026 - 15:02 EUVD

DescriptionCVE.org

Use After Free in libxml2's xmlParseInternalSubset from GNOME libxml2 version 2.9.11 to 2.11.0 allows a remote attacker to cause a denial-of-service via maliciously crafted XML input with improper entity resolution handling.

Executive ViewAI

Why It Matters

A use-after-free vulnerability in GNOME libxml2 versions 2.9.11-2.11.0 enables remote denial of service through malformed XML entity processing. Organizations operating applications that parse untrusted XML with affected library versions face immediate risk of service disruption; exposure is widespread wherever libxml2 is used in web services, document processors, or data pipelines.

Business Impact: High
Compensating Controls

Disable XML external entity (XXE) processing and entity expansion in all XML parsers; implement strict XML schema validation; enforce strict limits on entity nesting depth; segment networks to restrict untrusted XML sources; monitor application logs for XML parsing exceptions and crashes; apply vendor security updates for dependent applications when available.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Ubiquitous
Core XML library used across virtually all Linux/BSD systems
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CISA Vendor CIRCL VulDB

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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat Yes
Deciding rule
Active threat signals + CRITICAL/HIGH severity
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
PoC: 0
Weaponized: 0
Threat intel: +10
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

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise Micro 5.3 Affected
SUSE Linux Enterprise Micro 5.4 Affected
SUSE Linux Enterprise Micro 5.5 Affected

Threat IntelligenceMISP

CISA Advisories
Sources: CISA Vulnrichment, CISA (public domain)

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