Cyber Resilience

CVE-2024-2952

Litellm ≤ 1.34.42

Public PoC
Published
10 April 2024
Modified
15 July 2025
Patch / advisory
CVSS Score v3 9.8
Click a component to see what it means
Raw vectorCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.013 67th percentile
Risk Priority 74 floored blend · peak EPSS

Summary

CVE-2024-2952 is a critical-severity Improper Neutralization of Equivalent Special Elements (CWE-76) vulnerability in Litellm Litellm. Its CVSS base score is 9.8 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Command and Scripting Interpreter (T1059); ranked in the top 33% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

This vulnerability is AI-related — categorised as APIs and Models; in the Supply Chain and Deployment risk domain.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

crafting malicious `tokenizer_config.json` files that execute arbitrary code on the server.

CWE(s)

AI Security AnalysisAI

AI Category
APIs and Models
Risk Domain
Supply Chain and Deployment
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
BerriAI/litellm is a proxy server and SDK for unifying LLM APIs, handling /completions endpoints and processing HuggingFace tokenizer_config.json for chat templates.

Related Threats

MITRE ATT&CK Enterprise Techniques

T1059 Command and Scripting Interpreter Execution
Adversaries may abuse command and script interpreters to execute commands, scripts, or binaries.
T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
T1212 Exploitation for Credential Access Credential Access
Adversaries may exploit software vulnerabilities in an attempt to collect credentials.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-5710Same product: Litellm Litellm
CVE-2024-4888Same product: Litellm Litellm
CVE-2024-5751Same product: Litellm Litellm
CVE-2024-4889Same product: Litellm Litellm
CVE-2026-59821Same product: Litellm Litellm
CVE-2024-6587Same product: Litellm Litellm
CVE-2026-42208Same product: Litellm Litellm
CVE-2024-5225Same product: Litellm Litellm
CVE-2026-59820Same product: Litellm Litellm
CVE-2024-4890Same product: Litellm Litellm

Affected Assets

litellm
litellm
≤ 1.34.42

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

SA-11 requires developer testing and evaluation that can discover failures to neutralize equivalent special elements.

SI-10 requires validation of information inputs, directly stopping incomplete neutralization of equivalent special elements.

SA-8 mandates security engineering principles such as complete input validation and sanitization that cover equivalent special-element forms.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly require consistent neutralization of all equivalent special elements during input validation and sanitization.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing can detect incomplete neutralization but does not prevent the weakness itself.

prevents

Secure development life cycle mandates input validation and neutralization of all equivalent special elements.

prevents

Application security requirements include rules for handling special characters and equivalent encodings.

prevents

Secure system architecture principles require consistent canonicalization and neutralization of equivalent inputs.

prevents

Secure coding standards directly address proper neutralization of all equivalent special elements.

References