Skip to main content

Docling CVE-2026-105747

| EUVDEUVD-2026-92809 MEDIUM
Improper Handling of Highly Compressed Data (Data Amplification) (CWE-409)
4.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Submit malicious METS-GBS gzip tar archive
  2. Exploit
    Format detection calls getmembers() early
  3. Execution
    Full member list allocated before limit
  4. Impact
    Memory exhaustion causes denial of service

Vulnerability Assessment

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

The target must run Docling (or docling-slim) 2.45.0-2.130.x and ingest an attacker-supplied file through its document pipeline. Because the flaw triggers inside _detect_mets_gbs format detection in docling/datamodel/document.py BEFORE the allowed_formats restriction is applied, the attacker does NOT need METS-GBS to be an enabled/allowed format - any path that reaches format detection on the crafted file is sufficient. The malicious input is specifically a small gzip-compressed tar archive declaring a very large number of empty members. LIMITING FACTORS: a user or automated pipeline must actually submit/process the file (CVSS UI:R), exploitation is unauthenticated (PR:N) but yields only memory exhaustion (A:L) with no code execution, data read, or data modification.

Impact

This is a medium-severity, resource-exhaustion (memory amplification) flaw, not a high-priority emergency. The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L, base 4.3) shows no confidentiality or integrity impact and only LOW availability impact, with required user/system interaction to ingest a malicious file. No EPSS score, KEV listing, or public POC was provided, so there is no evidence of active or widespread exploitation - exploitation status is 'no public exploit identified at time of analysis.' Notably, the input Tag 'Information Disclosure' directly conflicts with the CVSS vector (C:N, A:L): this is a denial-of-service/data-amplification issue (CWE-409), NOT information disclosure - treat the tag as erroneous. The one aggravating factor is that the weakness triggers during METS-GBS format detection BEFORE the allowed_formats restriction is applied, so it can be reached even when METS-GBS is not an enabled format, slightly widening the attack surface. It is also explicitly a residual weakness of the earlier fix for CVE-2026-44018, i.e. a defense-in-depth hardening rather than a novel critical bug. Overall: patch on a normal cadence; low real-world urgency given A:L-only impact, required interaction, and absence of exploitation signals (EPSS data missing - cannot quantify probability).

Exploit ScenarioDerived

An attacker crafts a small gzip-compressed tar archive declaring a very large number of empty members and submits it to an application that processes documents with Docling (e.g. an upload or ingestion pipeline). When Docling runs METS-GBS format detection, it calls tarfile.getmembers() before enforcing max_member_count, allocating the entire member list and consuming memory proportional to the declared count, potentially exhausting memory and degrading or crashing the service. No public exploit code was provided, though the fixing PR (#4412) includes test archives demonstrating the condition.

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 – Oct 05, 2026

Processing a crafted document with Docling (or the docling-slim distribution) versions 2.45.0 through 2.130.x can exhaust process memory: a small gzip-compressed tar archive that declares a very large number of empty members causes the full archive member list to be materialised before the configured max_member_count limit can stop processing. The flaw sits in METS-GBS format detection (docling/datamodel/document.py) and the METS-GBS backend (docling/backend/mets_gbs_backend.py), and because detection runs before the allowed_formats restriction is applied, an attacker does not need METS-GBS to be an enabled format - remote, unauthenticated delivery is possible per the CVSS vector (AV:N/PR:N), though a user or automated pipeline must actually submit the file (UI:R), and the resulting impact is limited to availability (A:L, CVSS 4.3) with no code execution or data disclosure. No public exploit code was identified at time of analysis and the issue is not recorded as actively exploited; a vendor fix is available in 2.131.0.

RemediationAI

Upgrade to Docling (and docling-slim) 2.131.0, the version in which the member-count limit is enforced lazily during iteration; the release note is at https://github.com/docling-project/docling/releases/tag/v2.131.0, the advisory at https://github.com/docling-project/docling/security/advisories/GHSA-3cr3-8m4c-fpxw, and the upstream change at https://github.com/docling-project/docling/pull/4412 (commit ebae65cd71c37c88b36185b406a449b92d8f7ffa). Until the upgrade can be staged, note that simply removing METS-GBS from allowed_formats is NOT a reliable mitigation, because the vulnerable getmembers() call happens inside _detect_mets_gbs format detection before the allow-list is applied; the more effective compensating controls are to run Docling in a memory-capped container or cgroup (so a decompression-bomb input hits an OOM kill against the isolated worker rather than the host or a shared service), to cap the maximum accepted upload size and reject archives well below the memory budget, and to pre-screen untrusted tarballs with a wrapper that counts tar member headers streaming before handing the file to Docling - the trade-off being extra ingestion latency and the risk of false rejections for legitimately large archives. Restricting the document-ingestion endpoint to trusted submitters or an authenticated queue reduces exposure while the upgrade is pending, and lowering MetsGbsBackendOptions.max_member_count below the default gives no protection on the unfixed code paths, since the limit is only consulted after the full member list has already been allocated.

Affected VersionsENISA

docling-slim 2.45.0, < 2.131.0
docling 2.45.0, < 2.131.0

Affected Packages

pypi docling fix: 2.131.0
pypi docling-slim fix: 2.131.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages 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 document-processing library that parses many input formats and hands them to generative-AI pipelines; among its backends is METS-GBS, which consumes gzipped tar archives containing METS metadata plus per-page image/OCR files. Two code paths used Python's tarfile.TarFile.getmembers(), which eagerly reads every member header and builds the complete member list in memory, and only checked the member count (options.max_member_count) afterwards. In docling/datamodel/document.py the _detect_mets_gbs routine iterated tar.getmembers() during format sniffing, i.e. before the caller's allowed_formats allow-list was consulted; in docling/backend/mets_gbs_backend.py the constructor also enumerated all members before enforcing the limit. Because tar headers are tiny, a compressed archive can cheaply declare hundreds of thousands or millions of empty members, so memory consumption scales with the declared member count rather than with real payload bytes - the amplification pattern classified as CWE-409 (Improper Handling of Highly Compressed Data). This is explicitly described as a residual weakness in the member-count hardening previously added for CVE-2026-44018. The fix (PR #4412, commit ebae65cd71c37c88b36185b406a449b92d8f7ffa, released in v2.131.0) replaces eager enumeration with lazy header reads: the backend now steps through the archive with tar.next(), incrementing the counter and raising ValueError as soon as max_member_count is exceeded, caching only the headers it has seen in self._members, and a new _extract_member helper opens members by name on demand instead of calling TarFile.extractfile(name) (which itself loads the full list). Format detection was similarly changed to iterate the tar object lazily. Regression tests in tests/test_backend_mets_gbs.py confirm that member limiting is now enforced while iterating and that headers beyond the needed page files are never read.

Know when Docling Slim 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 (GitHub_M) PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
vuln.today AI 4.3 MEDIUM

Remotely supplied file (AV:N) processed without auth (PR:N) but requires ingestion by a user/pipeline (UI:R); only bounded memory exhaustion, so C:N/I:N and A:L.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

1
Patch available
Oct 05, 2026 - 23:02 EUVD

DescriptionCVE.org

Docling simplifies document processing by parsing diverse formats and providing integrations with the generative AI ecosystem. From 2.45.0 until 2.131.0, METS-GBS format detection in docling/datamodel/document.py and the backend in docling/backend/mets_gbs_backend.py call tarfile.TarFile.getmembers() before enforcing the max_member_count limit, causing the full archive member list to be allocated before the limit can stop processing. A small gzip-compressed tar archive with a very large number of empty members can therefore consume memory proportional to the declared member count, including during format detection before the allowed_formats restriction is applied. This issue is a residual weakness in the member-count protection added for CVE-2026-44018. This issue is fixed in 2.131.0.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 2 pypi packages depend on docling-slim (1 direct, 1 indirect)

Ecosystem-wide dependent count for version 2.92.0.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Medium
popular AI document-parsing library, but niche METS-GBS archive feature
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Vendor StatusVendor

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