CVE-2024-2952
Last modified
CVE-2024-2952 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 1.26% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Litellm | Litellm | < 1.34.42 |
References
- https://huntr.com/bounties/a9e0a164-6de0-43a4-a640-0cbfb54220a4Exploit, Third Party Advisory
- https://huntr.com/bounties/a9e0a164-6de0-43a4-a640-0cbfb54220a4Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-2952?
How severe is CVE-2024-2952?
How do I fix CVE-2024-2952?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-2951Cross-Site Request Forgery (CSRF) vulnerability in Metagauss…4.3
- CVE-2024-29510Artifex Ghostscript before 10.03.1 allows memory corruption,…6.3
- CVE-2024-29511Artifex Ghostscript before 10.03.1, when Tesseract is used f…7.5
- CVE-2024-29513An issue in briscKernelDriver.sys in BlueRiSC WindowsSCOPE C…7.8
- CVE-2024-29514File Upload vulnerability in lepton v.7.1.0 allows a remote …8.8
- CVE-2024-29515File Upload vulnerability in lepton v.7.1.0 allows a remote …8.8
- CVE-2024-2953The LuckyWP Table of Contents plugin for WordPress is vulner…4.8
- CVE-2024-2954The Action Network plugin for WordPress is vulnerable to SQL…4.9
- CVE-2024-2955T.38 dissector crash in Wireshark 4.2.0 to 4.0.3 and 4.0.0 t…7.5
- CVE-2024-2956The Simple Ajax Chat – Add a Fast, Secure Chat Box plugin fo…4.4
- CVE-2024-2957Rejected reason: **DUPLICATE*** Please use CVE-2024-1983 ins…
- CVE-2024-2958The SVS Pricing Tables plugin for WordPress is vulnerable to…4.8
Are you affected by CVE-2024-2952?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
