Skip to main content

Docling EUVDEUVD-2026-92810

| CVE-2026-105748 MEDIUM
External Control of File Name or Path (CWE-73)
2026-10-05 GitHub_M GHSA-p944-4xh2-x776
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
    Craft DoclingDocument JSON with local file URIs
  2. Delivery
    Deliver untrusted JSON to victim pipeline
  3. Exploit
    Victim re-converts via JSON_DOCLING backend
  4. Execution
    ImageRef resolved and Pillow decodes local file
  5. Impact
    Image bytes embedded in Markdown/HTML output

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
Exploitation Conditions

Requires a victim to load an attacker-controlled DoclingDocument JSON through the InputFormat.JSON_DOCLING backend (docling/backend/json/docling_json_backend.py) in docling/docling-slim versions 2.16.0 through 2.130.x, AND to enrich or export it with ImageRefMode.EMBEDDED, which triggers DoclingDocument._with_embedded_pictures / ImageRef.pil_image to open the referenced path. Limiting factors: the victim must actively process the untrusted JSON (UI:R), disclosure is restricted to files Pillow can decode as images (arbitrary text/binary secrets are not directly leaked, though path existence can be inferred from differing decode behavior), and the default re-conversion path must not have enable_local_fetch opt-in behavior; direct untrusted loading via docling-core is out of scope for this fix.

Impact

This is a genuine but low-severity (CVSS 4.3) information-disclosure issue, not a top priority. The provided CVSS vector (AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N) is self-consistent with the description: the attack is network-deliverable because a malicious DoclingDocument JSON can be shipped to a victim, requires no attacker authentication (PR:N), but hinges on user interaction (UI:R) - a victim must load and re-export the attacker's untrusted JSON with ImageRefMode.EMBEDDED. Impact is correctly scoped to C:L with I:N/A:N, since disclosure is limited to files Pillow can decode as images (plus inference of path existence from decode behavior), not arbitrary file read or code execution. No EPSS score, SSVC decision, KEV listing, or POC was provided in the input, so exploitation likelihood signals are absent rather than conflicting; the dependence on victim-driven re-conversion of attacker-controlled input strongly suggests targeted, workflow-specific abuse (e.g. a hostile document fed into an automated pipeline) rather than broad opportunistic exploitation. CWE-73 (external control of filename/path) matches the root cause. The limited confidentiality impact and mandatory user interaction make this a routine patch-when-convenient item for most, with higher urgency only for services that auto-ingest untrusted DoclingDocument JSON and embed images.

Exploit ScenarioDerived

An attacker crafts a DoclingDocument JSON whose picture ImageRef fields point at local filesystem paths or file: URIs (e.g. /etc/ or app secrets stored as images). A victim service or user re-converts that untrusted JSON through the JSON_DOCLING backend and exports to Markdown/HTML with ImageRefMode.EMBEDDED, causing Pillow to open the referenced local files and embed their decodable bytes into the output returned to or readable by the attacker. No public exploit identified at time of analysis; the attack requires the victim to process the attacker-supplied file.

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

Information disclosure in Docling (and the docling-slim distribution) versions 2.16.0 through 2.130.x lets an attacker embed local file paths or file: URIs inside a crafted DoclingDocument JSON that, when re-converted and enriched or exported with ImageRefMode.EMBEDDED, causes Docling to open and embed the referenced file's bytes into Markdown or HTML output. Per the CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N, score 4.3), no privileges are needed but the victim must actively load the malicious JSON, and exposure is constrained to files Pillow can decode as images, with differing decode behavior potentially revealing whether a path exists. There is no public exploit code identified at time of analysis and the issue is not listed in CISA KEV; the flaw is fixed in Docling 2.131.0.

RemediationAI

Vendor-released patch: 2.131.0 - upgrade Docling (and docling-slim) to 2.131.0 or later, as documented in the GHSA advisory (https://github.com/docling-project/docling/security/advisories/GHSA-p944-4xh2-x776) and release tag v2.131.0. After upgrading, the JSON_DOCLING backend silently drops every ImageRef whose URI is a bare path, a file: URI, or any scheme other than data/http/https, logging a warning and nulling the reference (its size, dpi and mimetype are lost with it), so the exploit chain through _with_embedded_pictures and ImageRef.pil_image is broken. If immediate upgrade is not possible, stop converting DoclingDocument JSON from untrusted or user-supplied sources - treat such files as unsafe input - and do not enable the new enable_local_fetch opt-in (DeclarativeBackendOptions(enable_local_fetch=True) via DoclingJSONFormatOption) for anything but trusted files, since that flag deliberately restores the vulnerable read behavior. Be aware of the functional trade-off: documents previously saved with ImageRefMode.REFERENCED will come back without their images after the fix unless they are re-saved with ImageRefMode.EMBEDDED or the opt-in is used on trusted input. Because exploitation requires the victim to open the crafted JSON (UI:R), restricting which users or services may submit JSON_DOCLING inputs, and running conversion in a sandbox or container whose filesystem contains no sensitive image content, are effective compensating controls.

Affected VersionsENISA

docling 2.16.0, < 2.131.0
docling-slim 2.16.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 integrates with generative-AI tooling. Its InputFormat.JSON_DOCLING backend (docling/backend/json/docling_json_backend.py) deserializes untrusted JSON into a docling-core DoclingDocument model via model_validate_json. Because ImageRef.uri values are treated as document content, a serialized document can name any path on the converting host; the class of the underlying defect is CWE-73 (External Control of File Name or Path). Under ImageRefMode.REFERENCED such references are inert, but the enrichment/export paths DoclingDocument._with_embedded_pictures and ImageRef.pil_image open the referenced path and write the decoded image bytes into Markdown/HTML output, producing limited file-read disclosure plus a path-existence oracle (images that decode behave differently from those that do not). The upstream fix in PR 4417 adds a recursive _clear_local_image_refs walk over the whole Pydantic model tree that nulls any ImageRef whose URI scheme is not in the allow-list {data, http, https}; the traversal is model-driven rather than a hard-coded field list so future docling-core item types (pictures, tables, code, forms, pages) are covered automatically. A new DoclingJSONFormatOption and DeclarativeBackendOptions(enable_local_fetch=True) opt-in restores legacy behavior for operators who deliberately process trusted JSON; the CLI never opts in. Note that direct untrusted loading through docling-core itself is explicitly outside the scope of this Docling fix.

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:L/I:N/A:N
vuln.today AI 4.3 MEDIUM

Malicious JSON is network-deliverable (AV:N) and needs no attacker auth (PR:N), but the victim must re-convert and embed it (UI:R); disclosure is limited to Pillow-decodable images, so C:L with no integrity or availability impact.

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

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
Low
Integrity
None
Availability
None

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.16.0 until 2.131.0, the InputFormat.JSON_DOCLING backend in docling/backend/json/docling_json_backend.py validates serialized DoclingDocument input without rejecting picture image references that contain local paths or file URIs. When the document is enriched or exported with ImageRefMode.EMBEDDED, the DoclingDocument._with_embedded_pictures and ImageRef.pil_image methods can open those references and place readable image bytes in Markdown or HTML output. Disclosure is limited to files Pillow can decode as images, while differing decode behavior can also reveal whether a path exists. Direct untrusted loading through docling-core is outside this Docling fix. 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 89% exploitable
Prevalence
Medium
popular GenAI/RAG document-parsing library, but a specialized dependency not universally deployed
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
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 Yes
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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

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