Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious TikZ/LaTeX document
-
DeliverySubmit to Tectonic-enabled Docling converter
-
ExploitAbuse \openin/\openout TeX primitives
-
ExecutionRead or overwrite converter-accessible files
-
ImpactOptionally execute shell commands via shell-escape
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 the converter to be explicitly configured with LatexBackendOptions(tikz_engine="tectonic"); the default configuration does not enable Tectonic rendering and is NOT affected. The attacker must supply a crafted LaTeX/TikZ document (body or preamble) that the pipeline then processes (UI:R). File read and file create/overwrite are achievable via unrestricted TeX primitives (\openin, \openout) scoped to files accessible to the converter process; arbitrary shell command execution additionally requires the tikz_engine_allow_shell_escape option to be enabled. Limiting factors: non-default opt-in configuration, the need for a victim/operator to process the malicious document, and that the flaw is fully fixed in 2.132.0 (which adds a best-effort source pre-check and runs Tectonic with --untrusted --only-cached when shell escape is off). |
| Impact | This is a genuine but conditional high-impact flaw rather than a drop-everything emergency. The NVD CVSS of 8.8 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) models full read/write (and, with shell escape, code-execution) impact, but it treats the dangerous Tectonic configuration as the baseline. The description is explicit that the default configuration does NOT enable Tectonic rendering and is unaffected, so real-world exposure is gated on an operator having opted into LatexBackendOptions(tikz_engine="tectonic") - a non-default, deliberate choice. The CVSS AC:L arguably understates this: because exploitation depends on a non-default secure-configuration deviation outside the attacker's control, AC:H is a more honest complexity rating. The exploitation signals reinforce a measured priority: EPSS is 0.30% (21st percentile), there is no CISA KEV listing, and no public exploit identified at time of analysis - all pointing to low current exploitation pressure. Net: patch promptly if you run Docling with Tectonic TikZ rendering against untrusted documents; if you use only the default configuration you are not exposed and this can follow normal patch cadence. |
| Exploit ScenarioDerived | An organization runs a Docling-based document-ingestion or RAG pipeline that has been configured with tikz_engine="tectonic" and accepts LaTeX documents from untrusted users. An attacker submits a document whose TikZ body or preamble uses TeX file primitives (\openin/\openout) to read sensitive files readable by the converter process and to create or overwrite files it can write; if tikz_engine_allow_shell_escape was also enabled, the same document can run arbitrary shell commands. No public exploit is identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 07, 2026
Docling 2.94.0 through 2.131.x allows an attacker-supplied LaTeX/TikZ document to read files accessible to the converter process and create or overwrite writable files when the caller has explicitly opted into Tectonic rendering via LatexBackendOptions(tikz_engine="tectonic"); enabling the additional tikz_engine_allow_shell_escape option escalates this to shell command execution through TeX. The default Docling configuration does not enable Tectonic rendering and is not affected, and exploitation further requires a victim or operator to feed the crafted document into the pipeline (UI:R), which is why the practical risk is conditional despite the high CVSS base score. Both docling and docling-slim are affected; the flaw is fully fixed in 2.132.0, EPSS is a low 0.30% (21st percentile) and no public exploit code or confirmed active exploitation was identified at time of analysis.
Earlier versions of this analysis (1)
Docling 2.94.0 through 2.131.x can be induced to read files accessible to the converter process and to create or overwrite writable files when an operator has explicitly enabled the non-default Tectonic TikZ renderer via LatexBackendOptions(tikz_engine="tectonic"). The bundled Tectonic engine compiles an untrusted TikZ body and document preamble without restricting TeX file primitives such as \openin and \openout, so a crafted LaTeX document supplied to the converter achieves a path-traversal-style file access primitive; if the separate tikz_engine_allow_shell_escape option is also turned on, the same input can additionally run shell commands through TeX. The issue is reachable remotely without authentication (CVSS PR:N) but requires user interaction - a victim must actually run the converter on the malicious document - and carries high attack complexity; no public exploit code or confirmed active exploitation was identified at time of analysis, the default Docling configuration that does not enable Tectonic rendering is unaffected, and the flaw is remediated in 2.132.0.
RemediationAI
Vendor-released patch: 2.132.0. Upgrade both docling and docling-slim to 2.132.0 or later, which flips allow_shell_escape to default False, runs Tectonic with --untrusted --only-cached when shell escape is disabled, and adds the source pre-check that refuses to render diagrams referencing file primitives or absolute/parent-directory paths (GHSA-x3q2-h9hx-4r4j; PR 4419; commit 38b6fa0a465d46fdacbbec333f50fa19c4f6b342; release v2.132.0). If an immediate upgrade is not possible, the strongest compensating control is simply not to opt in: leave LatexBackendOptions at its default (no tikz_engine="tectonic"), which removes the vulnerable compile path entirely at the cost of losing TikZ diagram rendering; equivalently, disable or remove Tectonic from converter hosts. Never set tikz_engine_allow_shell_escape=True, and treat any pre-existing configuration that enables it as compromised-equivalent, since it permits \write18 shell commands - this is a hard on/off switch with a direct functionality trade-off for documents that genuinely need shell escape (they will no longer render). Where Tectonic rendering must be retained for untrusted input, run the conversion process in a locked-down container or sandbox with a read-only root filesystem, a dedicated writable temp directory that is destroyed per run, no host credential files or SSH/cloud keys mounted, a non-privileged user, and outbound network egress blocked; also note that the upstream path pre-check is documented as best-effort and can be bypassed by macro-constructed paths, so isolation - not the pre-check alone - is the dependable boundary. No KEV listing or public exploit code was identified for this CVE at time of analysis, so patching can follow normal risk-based prioritization, with precedence given to any service that accepts caller-supplied LaTeX documents and has enabled the Tectonic engine.
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's LaTeX backend can optionally delegate TikZ diagram rendering to the Tectonic TeX engine (docling/backend/latex/engines/tectonic.py). In the vulnerable range, the engine compiled an untrusted TikZ body and document preamble without restricting TeX file primitives, so constructs such as \openin, \openout, and the XeTeX picture/PDF file primitives (XeTeXpicfile, XeTeXpdffile) were available, along with path-bearing commands like \input, \include, \includegraphics, \InputIfFileExists and \graphicspath. That constitutes the CWE-22 (improper limitation of a pathname to a restricted directory / path traversal) root cause: the compile step inherited the converter process's filesystem access with no confinement boundary, allowing relative or absolute paths to reach outside the intended staging directory. When tikz_engine_allow_shell_escape is set, Tectonic is invoked with -Z shell-escape, which turns on \write18 and allows shell commands as well. The upstream fix in 2.132.0 changes the default for allow_shell_escape to False, runs Tectonic with --untrusted --only-cached when shell escape is off (disabling shell escape, extra search paths, and network bundle fetches), and adds a best-effort pre-check (_precheck_staged_files / _find_unsafe_construct) that scans staged files for file primitives and absolute, drive-letter, tilde, or parent-directory (..) path arguments and skips rendering those diagrams. The patch and its own documentation explicitly describe this check as best-effort, since it cannot see paths constructed by macros or every TeX file-opening mechanism, and recommend processing untrusted LaTeX in an isolated environment. The vulnerable configuration is non-default and reachable across the network path (AV:N) but requires user interaction and, per the assessed vector, higher attack complexity than the vendor's base score implies.
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:H/I:H/A:H
AC:H because exploitation depends on a non-default Tectonic opt-in outside attacker control; PR:N as the attacker only supplies a document, UI:R as an operator must process it; arbitrary file read/write yields C/I/A:H.
Primary rating from Vendor (GitHub_M).
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
Docling simplifies document processing by parsing diverse formats and providing integrations with the generative AI ecosystem. From 2.94.0 until 2.132.0, callers that opt into LatexBackendOptions(tikz_engine="tectonic") invoke docling/backend/latex/engines/tectonic.py to compile an untrusted TikZ body and document preamble without restricting TeX file primitives including \openin and \openout. Crafted input can read files available to the converter and create or overwrite writable files, and enabling the tikz_engine_allow_shell_escape option additionally permits shell commands through TeX. The default configuration, which does not enable Tectonic rendering, is not affected. This vulnerability is fixed in 2.132.0.
Technical POC Analysis
CWE-22 (path traversal), with CWE-73 (external control of file path) and CWE-1188 (insecure default) as listed co-weaknesses.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
The Docling document-conversion library, including docling-slim, contains a high-severity flaw that could allow untrusted LaTeX/TikZ documents to trigger file reads, file writes, or shell command execution only when non-default Tectonic rendering and shell escape options are enabled. Most organizations are protected by Docling's default configuration, but teams that deliberately enabled those options in document-ingestion pipelines should treat affected systems as potentially exposed to untrusted content. Leadership should prioritize patching because a vendor-released fix is available, while noting that no public exploit identified at time of analysis and exploitation requires a crafted document to be fed into the pipeline.
Apply vendor patch.
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.
More in Docling Slim
View allLocal file disclosure in Docling allows crafted HTML to embed readable files from the host filesystem into the rendered
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-92804
GHSA-x3q2-h9hx-4r4j
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB