CVE & CISA-KEV Catalog

CVE-2024-2952

CRITICAL
9.8
CVSS v3
NVD

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.

How to fix

Remediation Available
litellmNVD
Affected:< 1.34.42Fixed in:1.34.42CVE-2024-2952derived from NVD

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

1.27%probability of exploitation in 30 days
67thpercentile

Moderate risk: more likely to be exploited than 67% of all known CVEs.

References

Exploit1

Related Vulnerabilities

Other CWE-76 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-1883Medium6.361%-Fix
CVE-2024-34359Critical9.628%--
CVE-2023-0493Medium5.37.9%-Fix
CVE-2024-1882High7.21.4%-Fix
CVE-2026-28292Critical9.81.3%-Fix
CVE-2026-11311High8.10.6%-Fix

Common questions

How do I fix CVE-2024-2952?

Upgrade litellm to 1.34.42 or later.

Is CVE-2024-2952 being actively exploited?

Not that we know of. CVE-2024-2952 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 1.3% is the estimated probability that it will be exploited in the next 30 days. That is higher than 67% of all scored CVEs.

How severe is CVE-2024-2952?

CVE-2024-2952 has a CVSS v3 base score of 9.8, rated critical. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2024-2952 affect?

Published advisories record a fix for litellm (NVD). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2024-2952
CVE-2024-2952 severity badge

Markdown

[![CVE-2024-2952](https://tridentstack.com/cve/badge/CVE-2024-2952.svg)](https://tridentstack.com/cve/CVE-2024-2952)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-2952"><img src="https://tridentstack.com/cve/badge/CVE-2024-2952.svg" alt="CVE-2024-2952"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-07-15.