Server-Side Template Injection in BerriAI/litellm
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in berriai/litellm 1.34.42.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| BerriAI | berriai/litellm | <1.34.42 | 1.34.42 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in BerriAI, strongest first
Embed
A live severity badge for an advisory, README or ticket