漏洞描述
Kroki prior to 0.31.2, when the TikZ backend (tikz2svg) is deployed, contains a local file read vulnerability because the secure-mode guard only blocks the \verbatiminput primitive, leaving \input, \include, \openin+\read and \lstinputlisting unrestricted. TeX Live ships with openin_any=a (allow any path) by default and the Kroki Docker image never overrides this setting, so an unauthenticated attacker can POST a crafted LaTeX document to /tikz/svg and receive the contents of any file readable by the container user embedded in the SVG response.
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。