Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft ODF with external image xlink:href
-
ExploitSubmit document to Docling conversion service
-
ExecutionBackend reads attacker path as unconfined image
-
ImpactLocal file content embedded in converted output
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that a victim (or an automated pipeline) convert an attacker-supplied OpenDocument file through Docling's opendocument_backend, and specifically that the crafted document contain a draw:image whose xlink:href part is NOT present in the document archive - this is the exact trigger that causes the backend to treat the href as a filesystem path. The referenced path must be readable by the Docling process for any effect; for actual content disclosure the file must additionally be decodable by Pillow as an image, otherwise only a file-existence oracle (via read success/failure) is obtained. Affected versions 2.107.0 through pre-2.120.3. LIMITING FACTORS: requires user interaction / document processing (UI:A), meaningful data exfiltration requires the converted output to be reachable by the attacker, and content-level disclosure is constrained to image-decodable files. Notably, unlike other Docling backends, this code path ignored the enable_local_fetch setting, so the read occurred regardless of that configuration on vulnerable versions. |
| Impact | This is a confidentiality-only path traversal / arbitrary local file read (CWE-22) with conflicting real-world weight. The source-provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:L) yields 6.9 (Medium): network-reachable and unauthenticated (PR:N), but gated by required user/pipeline interaction (UI:A) - a victim must convert the attacker's ODF document. No EPSS score, CISA KEV listing, SSVC decision, or public POC was provided in the input, so there is no public exploit identified at time of analysis and no evidence of active or automatable exploitation. The practical priority is therefore context-dependent rather than universally high: for organizations running Docling as a server-side or RAG document-ingestion service that accepts user-supplied ODF/ODT/ODP files AND returns or stores the converted output where the attacker can read it, this is a genuine data-exfiltration risk (local file contents embedded into output, plus a file-existence oracle for non-image files). For purely local/interactive use on trusted documents, real risk is low. Note the UI:A signal cuts both ways: in automated pipelines the 'interaction' is satisfied silently by the service itself, raising real exposure above what the Medium score implies. Impact is bounded - no code execution, integrity, or availability effect, and full content disclosure is limited to files Pillow can decode as images. No signals conflict with the description; the main unknowns are exploitation telemetry (EPSS/KEV/POC all absent, which is not evidence of safety). |
| Exploit ScenarioDerived | An attacker uploads a crafted ODF document (e.g., ODT/ODP) to a service or RAG pipeline that converts it with Docling, where a draw:image element's xlink:href references a local filesystem path such as /etc/passwd, an SSH key, or a config file instead of an embedded archive part. When Docling's OpenDocument backend fails to find the part in the archive, it reads the attacker-controlled path with no scheme check, extraction-directory confinement, or enable_local_fetch gating, embedding any Pillow-decodable file content into the converted output returned to the attacker and revealing the existence of other files via read success/failure. No public exploit identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 05, 2026
Local file disclosure in Docling's OpenDocument backend (versions 2.107.0 through 2.120.3) allows an attacker-supplied ODF file to force the parser to read arbitrary filesystem paths. When a draw:image element's xlink:href references a part missing from the document archive, the vulnerable backend treats the href as a local filesystem path without a scheme check or extraction-directory confinement, then embeds Pillow-decodable files into the converted output; non-image paths still leak existence information through read success or failure. Exploitation requires a victim or automated pipeline to convert a malicious ODF document (UI:A) in an unauthenticated network-reachable context (PR:N), and no public exploit code or CISA KEV active-exploitation entry has been identified at time of analysis. Note that on affected versions this code path bypassed the enable_local_fetch setting that other Docling backends honor, so the read occurred regardless of that configuration. The vulnerability is fixed in 2.120.3.
RemediationAI
Upgrade Docling to version 2.120.3 or later, which is the vendor-released patch (commit 6ee9965adfc364b3696a67c825ec2f0d9cee4311, PR 4015) and routes external image references through ImageResourceLoader under the enable_local_fetch and enable_remote_fetch controls - see the advisory at https://github.com/docling-project/docling/security/advisories/GHSA-4xhp-xg4w-8ppm and the release at https://github.com/docling-project/docling/releases/tag/v2.120.3. If immediate upgrade is not possible, the most effective compensating control is to run document conversion in a sandbox or container whose filesystem contains no sensitive readable files and no credentials, since the read is confined to what the Docling process can access; this limits disclosure but carries the operational cost of containerization and may break integrations that rely on local file access. Additionally, treat ODF input as untrusted: reject or quarantine ODF packages containing draw:image elements whose xlink:href does not resolve to a part inside the archive, and avoid feeding attacker-supplied documents directly into conversion pipelines where the rendered output is attacker-visible. Note that disabling enable_local_fetch was NOT reliable on affected versions because this backend ignored that setting, so configuration hardening alone does not remediate vulnerable releases and upgrading is required.
Affected VersionsENISA
Affected Packages
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 document-processing library that parses formats such as OpenDocument (ODF/ODP) and feeds them into generative AI pipelines. The flaw is a CWE-22 path traversal rooted in docling/backend/opendocument_backend.py, where the _image_ref_from_odf_image function derives an image path from the xlink:href attribute of a draw:image element. The legitimate flow is that the referenced image part is retrieved from within the ODF archive; however, when that part is not found (image_data is None) and an image_url is present, the vulnerable code fell back to Path(image_url).is_file() followed by read_bytes(), treating the attacker-controlled href as a filesystem path with no scheme validation, no confinement to the extraction directory, and no respect for the enable_local_fetch option that other backends apply. The upstream fix (PR 4015, commit 6ee9965adfc364b3696a67c825ec2f0d9cee4311, released in v2.120.3) routes external href values through a new ImageResourceLoader governed by enable_local_fetch and enable_remote_fetch, and additionally excludes empty-suffix paths from bitmap detection on the reasoning that extension-less paths such as /etc/passwd are typical of system files and are not valid ODF image references. The confidentiality impact (VC:H) arises because Pillow-decodable readable files are embedded into converted output, while a file-existence oracle is available for other existing paths via read success or failure.
Know when Docling 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N
Unauthenticated (PR:N) but needs a victim to convert the crafted ODF (UI:R); reads files outside the archive confinement boundary (S:C) disclosing contents (C:H) 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.107.0 until 2.120.3, docling/backend/opendocument_backend.py uses the xlink:href attribute value of a draw:image element as a filesystem path when the referenced part is not found in the document archive. The _image_ref_from_odf_image function reads that attacker-controlled path without a scheme check, extraction-directory confinement, or the enable_local_fetch setting used by other backends. Readable files that Pillow can decode as images are embedded in converted output, and other existing paths can be distinguished through the attempted read. This issue is fixed in 2.120.3.
Blast Radius
ecosystem impact- 1 pypi packages depend on docling (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 2.107.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
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Local 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
Information disclosure in Docling (and the docling-slim distribution) versions 2.16.0 through 2.130.x lets an attacker e
EUVD-2026-92815
GHSA-4xhp-xg4w-8ppm
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB