Vulnerability in Berriai 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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.013 (69.3th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 69th percentile — 69.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.013 · newest: 0.013 · change: 0.000
Affected products
- Berriai Berriai/litellm — versions unspecified
- Litellm
Weakness classification (CWE)
References
- huntr.com/bounties/a9e0a164-6de0-43a4-a640-0cbfb54220a4 (Exploit, Third Party Advisory)
- github.com/berriai/litellm/commit/8a1cdc901708b07b7ff4eca20f9cb0f1f0e8d0b3 (Patch)
Frequently asked questions
- What is CVE-2024-2952?
- CVE-2024-2952 is a critical-severity vulnerability in Berriai Berriai/litellm, classified under CWE-76. CVSS score: 9.8/10. Published 2024-04-10.
- How severe is CVE-2024-2952?
- Critical severity. CVSS v3 base score is 9.8 out of 10.