Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCraft malicious .tex with path traversal directives
-
DeliverySubmit file to Docling-based conversion pipeline
-
ExploitLaTeX backend processes \includegraphics or \input command
-
InstallUnvalidated path resolves outside base document directory
-
C2Arbitrary file read from server filesystem
-
ExecuteSensitive data embedded in conversion output
-
ImpactAttacker retrieves output to extract exfiltrated content
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 Docling-based application processes a LaTeX (.tex) document supplied or influenced by an attacker. The vulnerability is confined to the LaTeX backend - processing of other supported formats (DOCX, PDF, HTML, PPTX) does not trigger this code path. Per CVSS AV:L, the attacker must deliver the malicious .tex file to the host where Docling runs; this is not a remote network attack against a listening service by itself, but becomes effectively remote in any web application or API that accepts .tex file uploads and triggers conversion. UI:R means a human operator or automated pipeline action must initiate the conversion - passive installation of Docling does not expose the vulnerability. Exploitation is limited to confidentiality (C:H): only file read is possible, not write or execution. Affected versions are 2.73.0 through 2.90.x; deployments running 2.91.0 or later are not affected. |
| Impact | The CVSS 5.5 score reflects a meaningful but bounded threat profile. The AV:L (local) attack vector indicates the attacker must be able to supply a malicious .tex file to the Docling process - direct network exploitation against a default deployment is not possible. UI:R (user interaction required) further constrains exploitation: a person or automated job must initiate the LaTeX conversion. PR:N (no privileges required) means the attacker does not need any account or credential on the target system to craft the payload. The C:H (high confidentiality) impact is significant: a successful traversal can expose arbitrary files readable by the process, including credentials, configuration files, or private keys. There is no KEV listing and no publicly identified POC, so opportunistic mass exploitation is not currently observed. The realistic elevated-risk scenario is an organization running an automated LaTeX-to-document pipeline that accepts user-submitted .tex files without sandboxing - a common pattern in academic, publishing, or enterprise document workflows. EPSS data was not provided in the input; risk priority should be governed by whether the deployment processes untrusted LaTeX input. |
| Exploit ScenarioDerived | An attacker targeting an online LaTeX document conversion service uploads a crafted .tex file containing the directive \includegraphics{../../../etc/passwd} or \input{../../../home/app/.env}. When the service invokes Docling's LaTeX backend to convert the document, the unvalidated path is resolved and the referenced file is read from the server filesystem and embedded in the converted output. The attacker downloads the resulting document and extracts the sensitive file contents, potentially recovering database credentials, API keys, or private configuration data. No public POC exploit code has been identified, but the technique is straightforward and requires only knowledge of standard LaTeX syntax. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 03, 2026
Path traversal in Docling's LaTeX backend (pip/docling versions 2.73.0 through 2.90.x) allows an attacker who supplies a crafted LaTeX document to read arbitrary files accessible to the conversion process via the \includegraphics, \input, and \include command handlers. With a high confidentiality impact (C:H) but local attack vector and required user interaction (AV:L/UI:R per CVSS), the practical risk is concentrated in automated document-processing pipelines or services that ingest untrusted .tex files. No public exploit identified at time of analysis, and the vulnerability is not listed in CISA KEV. A vendor-released patch exists as of version 2.91.0.
RemediationAI
Upgrade docling to version 2.91.0 or later using pip install --upgrade docling. This version implements strict path containment via Path.resolve().is_relative_to() in the LaTeX macro handlers (commit 65ef180, PR #3330) and is the authoritative fix per the vendor advisory at https://github.com/docling-project/docling/security/advisories/GHSA-2j5p-7p5m-cvqr. If an immediate upgrade is not feasible, the vendor-recommended workaround is to avoid processing untrusted LaTeX documents entirely. If processing untrusted input is operationally required and patching is delayed, run the Docling process inside a sandboxed environment with filesystem access restricted to only the document working directory - for example, using Linux namespaces, Docker with a read-only rootfs and explicit volume mounts, or seccomp/AppArmor profiles that deny open() calls to sensitive filesystem paths. Note that sandboxing is a compensating control, not a substitute for patching: any misconfiguration of the sandbox boundary may leave traversal paths partially accessible.
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 Python-based document conversion library (pip/docling) that includes a LaTeX backend for processing .tex files. The backend interprets LaTeX commands including \includegraphics (for images), \input, and \include (for sub-document inclusion), all of which accept file path arguments. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory - Path Traversal) describes the root cause: the backend resolved these paths without verifying the resolved canonical path remained within the base document directory. An attacker can embed sequences such as \includegraphics{../../../etc/passwd} to escape the working directory. The fix introduced in 2.91.0 applies Python's Path.resolve().is_relative_to() to canonicalize the requested path and confirm it is a descendant of the base document directory before any file access is performed, with violations logged and blocked.
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
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Primary rating from Vendor (https://github.com/docling-project/docling).
CVSS VectorVendor: https://github.com/docling-project/docling
DescriptionCVE.org
Impact
The LaTeX backend's handling of \includegraphics, \input, and \include commands lacked path containment validation. Attackers could craft malicious LaTeX documents with path traversal sequences (e.g., ../../../etc/passwd) to:
- Read arbitrary files from the file system accessible to the process
- Include sensitive files in the converted document output
- Potentially access configuration files, credentials, or other sensitive data
Patches
Fixed in version 2.91.0. The fix implements strict path validation using Path.resolve().is_relative_to() to ensure all resolved paths remain within the base document directory. Attempts to traverse outside the base directory are logged and blocked.
Workarounds
Avoid processing untrusted LaTeX documents. If processing is necessary, run in a sandboxed environment with restricted file system access.
References
- Fix release: v2.91.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.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-39005
GHSA-2j5p-7p5m-cvqr
NVD
CVE.org
EPSS
Exploit-DB