icon

We found results for “

CVE-2024-2952

Good to know:

icon
icon

Date: April 10, 2024

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.

Language: Python

Severity Score

Severity Score

Weakness Type (CWE)

Improper Neutralization of Equivalent Special Elements

CWE-76

Top Fix

icon

Upgrade Version

Upgrade to version litellm - 1.34.42

Learn More

CVSS v3.1

Base Score:
Attack Vector (AV): NETWORK
Attack Complexity (AC): LOW
Privileges Required (PR): NONE
User Interaction (UI): NONE
Scope (S): UNCHANGED
Confidentiality (C): HIGH
Integrity (I): HIGH
Availability (A): HIGH

Do you need more information?

Contact Us