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, GHSA-46cm-pfwv-cgf8
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: CVSS v3 score 9.8, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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: PyPA Advisory Database · CC BY 4.0