Skip to content
High 7.5

Krokiに認証なしでサーバー上のファイルを読み取られる脆弱性

CVE-2026-102359 First seen on SecPulse

Summary

Krokiのセキュアモード(KROKI_SAFE_MODE)でTikZのファイル読み取り対策が不十分なため、認証なしで細工したLaTeXを送ると、コンテナ実行ユーザーが読めるファイルの内容がSVGに表示されるおそれがあります。影響するのは0.31.2より前の版で、修正版は0.31.2です。マウントされた秘密情報や認証情報が含まれる環境では、早めに0.31.2へ更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Krokiのセキュアモード(KROKI_SAFE_MODE)でTikZのファイル読み取り対策が不十分なため、認証なしで細工したLaTeXを送ると、コンテナ実行ユーザーが読めるファイルの内容がSVGに表示されるおそれがあります。影響するのは0.31.2より前の版で、修正版は0.31.2です。マウントされた秘密情報や認証情報が含まれる環境では、早めに0.31.2へ更新してください。

Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details