Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft DoclingDocument JSON with local file URIs
-
DeliveryDeliver untrusted JSON to victim pipeline
-
ExploitVictim re-converts via JSON_DOCLING backend
-
ExecutionImageRef resolved and Pillow decodes local file
-
ImpactImage 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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- 2 pypi packages depend on docling-slim (1 direct, 1 indirect)
Ecosystem-wide dependent count for version 2.92.0.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Docling Slim
View allLocal file disclosure in Docling allows crafted HTML to embed readable files from the host filesystem into the rendered
Docling 2.94.0 through 2.131.x allows an attacker-supplied LaTeX/TikZ document to read files accessible to the converter
Import-time code execution in Docling 2.27.0 through 2.131.0 lets any distribution already present in the same Python en
Unbounded rowspan/colspan attribute handling in Docling 2.0.0 through 2.130.x lets a deliberately crafted document force
Server-side request forgery in Docling 2.91.0 through 2.131.x lets an attacker-supplied document reach internal services
Docling 2.83.0 through 2.130.x ignores the enable_remote_services=False policy when OCR is configured with KserveV2OcrOp
Docling's HTML backend forwards operator-configured HTTP headers - bearer tokens, API keys, cookies set via HTMLBackendO
Processing a crafted document with Docling (or the docling-slim distribution) versions 2.45.0 through 2.130.x can exhaus
EUVD-2026-92810
GHSA-p944-4xh2-x776
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB