cbcvebase.
CVE-2024-2952
published 2024-04-10

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`…

PriorityP259critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EPSS
1.26%
65.8th percentile
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.

Affected

3 ranges
VendorProductVersion rangeFixed in
berriaiberriai_litellm>= unspecified < 1.34.421.34.42
litellmlitellm< 1.34.421.34.42
litellmlitellm>= 0 < 1.34.421.34.42
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.