1. Home
  2. Vulnerabilities
  3. CVE-2026-102359

CVE-2026-102359

Kroki: TikZ Secure Mode Local File Read via LaTeX File I/O Primitives

Published 6 Nov 2026 · modified 12 Nov 2026 · Sources: NVD, CNA (vendor or assigner), EPSS (FIRST)

Medium 61/100

Summary

Kroki creates diagrams from textual descriptions. Prior to 0.31.2, the TikZ backend's tikz/tikz2svg guard used when KROKI_SAFE_MODE is enabled blocks only \verbatiminput while allowing native TeX file-read primitives including \openin, \read, \input, and \include. TeX Live's permissive openin_any setting remains active, so an unauthenticated actor can submit crafted LaTeX to POST /tikz/svg or the generic diagram API and cause the renderer to read any file accessible to the Kroki container user. The file contents are rendered into the returned SVG, which may disclose mounted secrets, configuration data, credentials, private keys, or process environment data. The -no-shell-escape option prevents shell execution but does not restrict these native file operations. This issue is fixed in version 0.31.2.

Affected products and versions

yuzutech (1 line(s))
yuzutech
ProductVersionsFixed inSource
kroki Versions not specified — CNA (vendor or assigner)

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

Kroki TikZ Backend < 0.31.2 - Local File Readofficial source

Nuclei template

nuclei -u https://VOTRE-HOTE -t http/cves/2026/CVE-2026-102359.yaml

Source : Open

Timeline

  1. — CVE published (cve)
  2. — Nuclei detection template (nuclei) date first seen

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
CNA (vendor or assigner)
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (CVSS 3.1, CNA:GitHub_M)
Weakness
CWE-22 · Traversée de chemin / fichiers

How this data is obtained and calculated