Read the docs
TI-2024-02760 Aliases CVE-2024-2952GHSA-46cm-pfwv-cgf8

Server-Side Template Injection in BerriAI/litellm

Priority HIGH 82CWE-76Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.0 · CNA. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01267 69th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed berriai/litellm (berriai): 1.34.42litellm (PyPI): 1.34.42

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
BerriAIberriai/litellmbefore 1.34.421.34.42Patch availableCNA
—litellm (PyPI)before 1.34.421.34.42Patch availableGHSA-46cm-pfwv-cgf8
  • berriai/litellm VendorBerriAI Affected before 1.34.42 Fixed in 1.34.42 Patch available CNA
  • litellm (PyPI) Vendor— Affected before 1.34.42 Fixed in 1.34.42 Patch available GHSA-46cm-pfwv-cgf8

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*before 1.34.42VulnerableBerriAI
  • cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:* Versions before 1.34.42 Vulnerable ·BerriAI

Remediation

  • Fix · CNA berriai/litellm (berriai) Fixed in 1.34.42
  • Fix · GHSA-46cm-pfwv-cgf8 litellm (PyPI) Fixed in 1.34.42 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-2952
  2. 2026-10-03 Alias added: GHSA-46cm-pfwv-cgf8

References

  • TI-2026-26015 Trivy ecosystem supply chain briefly compromised KEVCVSS 4.0CRITICAL 9.4
  • TI-2026-30529 LiteLLM: SQL injection in Proxy API key verification KEVCVSS 4.0CRITICAL 9.3
  • TI-2026-30582 LiteLLM: Authenticated command execution via MCP stdio test endpoints KEVCVSS 4.0HIGH 8.7
  • TI-2026-42639 LiteLLM: MCP Authentication Bypass via OAuth2 Passthrough Fallback KEVCVSS 4.0HIGH 8.8
  • TI-2024-05340 Remote Code Execution in BerriAI/litellm CVSS 3.1CRITICAL 9.8
  • TI-2026-34701 LiteLLM < 1.83.10 Privilege Escalation via User Update CVSS 4.0HIGH 8.7
See all 36 →

Sources