litellm
Affected
- introduced
0, fixed1.34.42(ecosystem)
Fixed versions
1.34.42
Fix
- Fixed version
1.34.42pip install --upgrade litellm==1.34.42
Advisory
Also known as: CVE-2024-2952, PYSEC-2026-387
LiteLLM has Server-Side Template Injection vulnerability in /completions endpoint
BerriAI/litellm is vulnerable to Server-Side Template Injection (SSTI) via the /completions endpoint. The vulnerability arises from the hf_chat_template method processing the chat_template parameter from the tokenizer_config.json file through the Jinja template engine without proper sanitization. Attackers can exploit this by crafting malicious tokenizer_config.json files that execute arbitrary code on the server.
Critical Basis: The source's own band: CRITICAL
0, fixed 1.34.42 (ecosystem)1.34.42
1.34.42pip install --upgrade litellm==1.34.42Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0