Live threats

All CVEs / Litellm

CVE-2024-2952Litellm

Critical 9.8 No auth needed

Priority
74
CVSS 3.0
9.8
EPSS
1.5%
probability of exploitation in 30 days · percentile 74
Auth required
No
Published
Apr 10, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-76
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Litellm.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI litellm < 1.34.42 1.34.42 pip install "litellm>=1.34.42"
PyPI litellm < 1.34.42 1.34.42 pip install "litellm>=1.34.42"

Per OSV / GitHub Advisories (GHSA-46cm-pfwv-cgf8, PYSEC-2026-387). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
litellmlitellm< 1.34.42

Official sources

References

Links published by the sources. Open them with care.