9.8

CVE-2024-2952: Server-Side Template Injection in BerriAI/litellm

Analyzed
AliasesGHSA-46cm-pfwv-cgf8PYSEC-2026-387
Published 10-04-2024Last modified 01-08-2024

Vulnerability summary

CVE-2024-2952 is a critical (CVSS 9.8) vulnerability in berriai berriai/litellm. EPSS estimates a 1.26% chance of exploitation in the next 30 days, higher than 70.5% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (reference, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.0 (CVE.org)
EPSS score
1.26%
0%100%
Low · -0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Timeline

  1. 10-04-2024
    PublishedVulnerability first disclosed.
  2. 01-08-2024
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

1.26%

Chance of exploitation in the next 30 days

Percentile

71%

Versus all other CVEs

30-day change

Decrease -0.01 pp

From 1.27% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Berriai1 product
Litellm1 product
PyPI1 product
  • litellm< 1.34.42

3 vendors · 3 products

References

11 links
Show all 11 references