cve.bz

CVE-2024-2952

9.8 criticalEPSS 1.3%

Critical (9.8) in litellm litellm. EPSS 1.3% chance of exploitation in the next 30 days. Fixed in litellm 1.34.42.

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.

Severity

CVSS 3.0

9.8 critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.3% chance of exploitation in the next 30 days; higher than 69% of CVEs (scores of 2026-10-31)
CWE
CWE-76
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-46cm-pfwv-cgf8PyPIlitellm<1.34.421.34.42
PYSEC-2026-387PyPIlitellm<1.34.421.34.42

References

Check your stackJSON