CVE-2024-2952
published critical CVSS 3.0 · 9.8Server-Side Template Injection in BerriAI/litellm
Package status and fixes
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| berriai | berriai/litellm | unspecified to < 1.34.42 (affected · custom) | @huntr_ai · cna |
| berriai | litellm | 1.23.2 to < 1.34.42 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-76 CWE-76 Improper Neutralization of Equivalent Special Elements
References
2Provider assertions
3@huntr_ai · cna
Server-Side Template Injection in BerriAI/litellm
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 97005cbd8450becb8f541dcf5338be6684c9102b959d3b42940aa34dabffff96
- Ingested
- 23 Sep 2026, 08:21:57 UTC
- Source record
- Official CVE record