Vulnerability Intelligence Report
Server-Side Template Injection in BerriAI/litellm
CVE-2024-2952
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.
No Active Exploit Signals
CVSS Base Score
9.8
CRITICAL
Exploitability:3.9
Impact Score:5.9
EPSS Probability:1.26%
Executive Threat Verdict
Evaluating...
Evaluating Threat Landscape...
Assessing known weaponization, exploitation telemetry, and federal advisories.
Attack Surface
—
Authentication
—
Weaponization
—
SSVC Action
—
Weaknesses (CWE)
CWE-76 ↗CWE-76 Improper Neutralization of Equivalent Special Elements
Affected Products & Versions
| Vendor | Product | Affected Versions |
|---|---|---|
| berriai | berriai/litellm | unspecified < 1.34.42 (affected) |
References & Technical Advisories
No reference links found.
Threat Intelligence Signals
EPSS Score
1.256%
GitHub Advisory
Identity & Timeline
| Status | PUBLISHED |
| Assigning Authority | Protect AI (formerly huntr.dev) · Bug Bounty Provider · USA |
| Reserved | 2024-03-26T18:00:46 |
| Published | 2024-04-10T17:07:52 |
| Last Updated | 2024-08-01T19:32:42 |
Community Chatter & Buzz