CVE-2024-2952 in litellm信息

摘要

由 VulDB • 2026-07-29

BerriAI/litellm 存在服务端模板注入(SSTI)漏洞,该漏洞可通过 `/completions` 端点触发。此问题源于 `hf_chat_template` 方法在处理来自 `tokenizer_config.json` 文件的 `chat_template` 参数时,通过 Jinja 模板引擎进行渲染且未执行适当的清理操作。攻击者可以通过构造恶意的 `tokenizer_config.json` 文件来利用该漏洞,从而在服务器上执行任意代码。

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

来源

Do you need the next level of professionalism?

Upgrade your account now!