Skip to main content

Docling CVE-2026-44022

| EUVDEUVD-2026-39005 MEDIUM
Path Traversal (CWE-22)
2026-06-03 https://github.com/docling-project/docling GHSA-2j5p-7p5m-cvqr
5.5
CVSS 3.1 · Vendor: https://github.com/docling-project/docling
View

Attack ChainAIDerived

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

  1. Recon
    Craft malicious .tex with path traversal directives
  2. Delivery
    Submit file to Docling-based conversion pipeline
  3. Exploit
    LaTeX backend processes \includegraphics or \input command
  4. Install
    Unvalidated path resolves outside base document directory
  5. C2
    Arbitrary file read from server filesystem
  6. Execute
    Sensitive data embedded in conversion output
  7. Impact
    Attacker 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

docling 2.73.0, < 2.91.0

Affected Packages

pypi docling fix: 2.91.0

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

Vendor (https://github.com/docling-project/docling) PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Red Hat 5.5 MEDIUM

Primary rating from Vendor (https://github.com/docling-project/docling).

CVSS VectorVendor: https://github.com/docling-project/docling

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

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

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

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.0%
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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

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.

Vendor StatusVendor

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