Vulnerability Monitor

The vendors, products, and vulnerabilities you care about

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

2024-04-10T17:15:54.823

Last Modified

2025-07-15T14:21:14.340

Status

Analyzed

Source

[email protected]

Severity

CVSSv3.0: 9.8 (CRITICAL)

Weaknesses
  • Type: Secondary
    CWE-76

Affected Vendors & Products
Type Vendor Product Version/Range Vulnerable?
Application litellm litellm < 1.34.42 Yes

References