# CVE-2026-102359: Kroki: TikZ Secure Mode Local File Read via LaTeX File I/O Primitives

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.03%, higher than 81% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-06T17:36:09.840Z
- Modified: 2026-11-12T22:11:01.153Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- yuzutech kroki: < 0.31.2

## References

- <https://github.com/yuzutech/kroki/security/advisories/GHSA-r54f-fq6c-53vw> (exploit)
- <https://github.com/yuzutech/kroki/commit/9108ab5b429b9dc82b76432ccf40d4d7eeba1b30>
- <https://github.com/yuzutech/kroki/releases/tag/v0.31.2>

## Sources

- CVE List: [CVE-2026-102359](https://www.cve.org/CVERecord?id=CVE-2026-102359), CVE Terms of Use, modified 2026-11-11
- NVD: [CVE-2026-102359](https://nvd.nist.gov/vuln/detail/CVE-2026-102359), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-102359 · Whole record: https://cve.day/CVE-2026-102359.json · Rebuilt by cve.day 2026-11-25T22:59:49.299Z
