CVE-2026-105744

Docling: Arbitrary file read/write (and command execution when shell-escape is enabled) when rendering untrusted TikZ with the opt-in Tectonic engine

Published Oct 5, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Untrusted TikZ diagrams supplied to the optional Tectonic engine in Docling can exploit TeX primitives such as \\openin and \\openout to read or create files on the host system. When the tikz_engine_allow_shell_escape flag is also enabled, shell commands can be executed, providing full remote code execution capabilities. The vulnerability stems from the lack of sandboxing for the TeX compilation process and is a direct result of the Tectonic rendering option being intentionally open to arbitrary TeX code.

Affected Systems

Versions of Docling from 2.94.0 through 2.132.0 that expose the tikz_engine="tectonic" feature are affected. The affected vendors are the docling-project for both the standard and slim distributions. The fix was released in version 2.132.0; earlier releases do not include mitigation for the described flaw.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity, while no EPSS is reported and the flaw is not listed in the CISA KEV catalog. The flaw is exploitable by supplying a crafted document that uses TikZ, which many document processing workflows ingest. Because the TeX engine can access local files and execute shell commands when the optional flag is enabled, an attacker with control over input can achieve local privilege escalation or compromise the system hosting Docling. The risk is higher in environments where the Docling service is exposed to untrusted users, such as public-facing APIs or shared processing pipelines that accept documents from external sources. The attack does not require additional authentication or elevated privileges beyond those already present in the running Docling process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Docling package to version 2.132.0 or newer, which removes the vulnerable channel and includes proper safeguards for TikZ rendering.
  • Configure Docling to not use the tikz_engine="tectonic" option in its LaTeX backend; revert to the default TeX engine or use a sandboxed renderer.
  • Ensure the tikz_engine_allow_shell_escape flag is disabled when rendering documents that may contain TikZ content, or restrict its use to trusted input only.

Generated by OpenCVE AI on October 7, 2026 at 06:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-x3q2-h9hx-4r4j Docling has arbitrary file read/write (and command execution when shell-escape is enabled) when rendering untrusted TikZ with the opt-in Tectonic engine
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Docling
Docling docling
CPEs cpe:2.3:a:docling:docling:*:*:*:*:*:*:*:*
Vendors & Products Docling
Docling docling
Type Values Removed Values Added
First Time appeared Docling-project
Docling-project docling
Vendors & Products Docling-project
Docling-project docling
Type Values Removed Values Added
Description 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.
Title Docling: Arbitrary file read/write (and command execution when shell-escape is enabled) when rendering untrusted TikZ with the opt-in Tectonic engine
Weaknesses CWE-1188
CWE-22
CWE-73
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-1188

    Initialization of a Resource with an Insecure Default

  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-73

    External Control of File Name or Path

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 6, 2026, 6:16 PM
Reserved
Oct 5, 2026, 7:11 PM
Status
Analyzed
Published
Oct 5, 2026, 10:16 PM
Modified
Oct 7, 2026, 7:33 PM
Severity
Moderate
Public date
Oct 5, 2026, 9:26 PM