Skip to main content

Docling CVE-2026-44018

| EUVDEUVD-2026-39790 HIGH
Improper Handling of Highly Compressed Data (Data Amplification) (CWE-409)
2026-06-03 https://github.com/docling-project/docling GHSA-r3xg-rg9j-67fv
7.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious METS-GBS archive
  2. Delivery
    Submit to Docling ingestion path
  3. Exploit
    Parser resolves external entity or expands bomb
  4. Execution
    Read local files or exhaust memory and disk
  5. Impact
    Sensitive data leak or application crash

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Compression ratio limits
Exploitation Conditions

Exploitation requires the victim application to process an attacker-supplied METS-GBS archive through Docling's METS-GBS backend (CVSS UI:R confirms required interaction - the malicious document must be ingested). No authentication is needed (PR:N), but the attack vector is local (AV:L): the attacker must get the crafted archive into a processing path rather than hitting a network listener directly. The XXE branch additionally depends on the parsing environment being able to resolve external entities (the pre-2.91.0 default), and the resource-exhaustion branch depends on the absence of extraction limits (also pre-2.91.0 default). Limiting factors: only the METS-GBS code path is affected, so deployments that never handle METS-GBS archives are not exposed, and impact is confined to file read and DoS (I:N - no data modification or code execution).

Impact

Signals are consistent and point to a real but moderate, non-urgent issue. The CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H, base 7.1) describes a local-input, no-privilege, user-interaction-required flaw with high confidentiality and availability impact but no integrity impact - typical of a file-parsing vulnerability where the 'local' vector reflects that an application must ingest the malicious document. EPSS is essentially floor-level (0.01%, 3rd percentile) and the issue is not in CISA KEV, with no public exploit identified at time of analysis, so there is no evidence of opportunistic mass exploitation. No SSVC decision record was provided. The practical risk concentrates in deployments that feed untrusted documents into Docling (e.g., automated ingestion services or RAG pipelines): there, XXE-driven local file reads and DoS are credible. One nuance to verify: the vector lists AV:L, but if Docling is exposed via a network service that accepts uploaded archives, the effective exposure resembles remote-triggerable input even though scoring remains local - confirm against your deployment model rather than assuming console-only access.

Exploit ScenarioDerived

An attacker submits a crafted METS-GBS archive to a service or workflow that uses Docling for document conversion. When Docling parses the embedded XML, an external entity reads a local file (e.g., credentials or config) and leaks it, or a nested zip/tar bomb expands without bounds to exhaust memory and disk and crash the application. No public exploit is identified at time of analysis, and success requires the target to actually process the malicious input (UI:R).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv3 – Jun 27, 2026

Local file disclosure and denial of service in the Docling document-conversion library (Python pip package, versions 2.45.0 up to 2.91.0) stem from its METS-GBS backend parsing XML and extracting archives without security controls. A maliciously crafted METS-GBS archive processed by Docling can trigger XML External Entity (XXE) resolution to read sensitive local files, or use decompression/zip bombs and unbounded tar extraction to exhaust memory and disk. EPSS is very low (0.01%, 3rd percentile) and there is no public exploit identified at time of analysis; exploitation requires a victim application to process attacker-supplied input.

Earlier versions of this analysis (2)
v2 Jun 27, 2026 - 20:43 cvss changed CVSS 7.1

Local file disclosure and denial of service in Docling (>= 2.45.0, < 2.91.0), an open-source document-parsing library, arise from the METS-GBS backend parsing XML without entity restrictions and extracting tar archives without size or member limits. A crafted METS-GBS archive can trigger XML External Entity (XXE) reads of sensitive local files (C:H) or exhaust memory and disk via decompression/zip bombs and unbounded extraction (A:H). No public exploit identified at time of analysis and the EPSS probability is very low (0.01%, 3rd percentile); the issue is fixed in version 2.91.0.

v1 Jun 03, 2026 - 21:51 CVSS 5.5

Unsafe XML parsing and uncontrolled archive extraction in Docling's METS-GBS backend (pip/docling, versions 2.45.0-2.90.x) enables XXE attacks capable of reading local files and decompression bomb attacks capable of exhausting memory and disk space when processing crafted archives. The CVSS vector (AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H) reflects that exploitation requires a user or automated process to trigger METS-GBS archive processing - it is not directly remotely exploitable without that interaction. No public exploit code has been identified and the vulnerability is not listed in the CISA KEV catalog; the vendor-released patch is version 2.91.0.

RemediationAI

Vendor-released patch: 2.91.0 - upgrade docling to 2.91.0 or later (pip install --upgrade 'docling>=2.91.0'), which enforces secure XML parsing (resolve_entities=False, load_dtd=False, no_network=True) and extraction limits (300 MB total, 10 MB per file, 1000 members). If you cannot upgrade immediately, the vendor workaround is to avoid processing METS-GBS archives from untrusted sources; where such processing is required, pre-validate archives in an isolated sandbox with strict CPU, memory, and disk quotas (the trade-off is added pipeline latency and operational overhead) and disable or gate the METS-GBS ingestion path so only trusted, size-bounded inputs reach the backend. See the advisory https://github.com/docling-project/docling/security/advisories/GHSA-r3xg-rg9j-67fv and release notes https://github.com/docling-project/docling/releases/tag/v2.91.0 (fix PR #3336, commit c1dbac2).

Affected VersionsENISA

docling 2.45.0, < 2.91.0

Affected Packages

pypi docling fix: 2.91.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

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

Technical ContextAI · show details

Docling is a popular open-source Python library (distributed as pkg:pip/docling) used to parse and convert documents - increasingly in RAG and LLM ingestion pipelines. The flaw lives in the METS-GBS backend, which handles METS-GBS tar archives (a METS-based packaging format for digitized books/Google Books-style content). Two root causes combine: an unsafe XML parser that resolved external entities and DTDs (classic XXE) and an archive extractor with no size/member limits. The assigned CWE-409 (Improper Handling of Highly Compressed Data / decompression bomb) captures the resource-exhaustion half; the advisory and tags also explicitly cite XXE, which is a CWE-611 class issue. The fix in 2.91.0 hardens XML parsing with resolve_entities=False, load_dtd=False, and no_network=True, and adds a _detect_mets_gbs() detector plus extraction limits (300 MB total, 10 MB per file, 1000 members) with cumulative tracking and early termination.

Know when the next one hits your stack

  • 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

NVD PRIMARY 7.1 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
vuln.today AI 7.1 HIGH

Malicious input must be processed locally (AV:L, UI:R) with no privileges (PR:N); XXE yields high file-read confidentiality (C:H) and bombs cause DoS (A:H), with no integrity impact (I:N).

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

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High

Lifecycle Timeline

2
Severity Changed
Jun 27, 2026 - 20:37 NVD
MEDIUM HIGH
CVSS changed
Jun 27, 2026 - 20:37 NVD
5.5 (MEDIUM) 7.1 (HIGH)

DescriptionNVD

Impact

The METS-GBS backend's XML parsing and the input document format detection lacked security controls, enabling:

  • XML External Entity (XXE) attacks to read local files or cause denial of service
  • Decompression bombs (zip bombs) to exhaust memory and disk space
  • Unbounded archive extraction consuming system resources

An attacker could craft malicious METS-GBS archives that, when processed, could read sensitive files, exhaust system resources, or cause application crashes.

Patches

Fixed in version 2.91.0. The fix implements:

  • Secure XML parsing with resolve_entities=False, load_dtd=False, and no_network=True
  • Configurable limits: 300 MB total extraction size, 10 MB per file, 1000 member count
  • Cumulative size tracking across all extractions
  • Early termination when limits are exceeded
  • Secure format detection of METS-GBS tar archives with _detect_mets_gbs() method: maximum file size (10 MB per file), maximum member count (1000 members), and exception handling to gracefully fail when limits are exceeded

Workarounds

Avoid processing METS-GBS archives from untrusted sources. If necessary, pre-validate archives in an isolated environment with resource limits.

References

Executive ViewAI

Why It Matters

Docling, a Python document conversion library in versions 2.45.0-2.91.0, contains vulnerabilities that enable reading of sensitive local files or denial of service when processing malicious documents. No public exploit code has been identified; however, organizations accepting external documents remain at risk for data breach and service disruption. A vendor patch is available.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim mitigations if patching cannot be completed immediately: restrict document uploads to authenticated users, enforce strict file size limits on archives, disable XML external entity processing where configuration permits, and implement resource monitoring to detect abnormal memory or disk consumption.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Prevalence
Medium
popular Python document/RAG library, but niche METS-GBS backend affected
Threat Intel
1
1 source
Data Quality
5 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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
High

Priority Score

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

Attack Technique

XML External Entity (XXE) attacks exploit XML parsers that process Document Type Definitions (DTDs) without proper restrictions.

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

Vendor StatusVendor

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