logo

CVE-2024-2952 litellm

Package

Manager: pip
Name: litellm
Vulnerable Version: >=0 <1.34.42

Severity

Level: Critical

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

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

EPSS: 0.0145 pctl0.80037

Details

LiteLLM has Server-Side Template Injection vulnerability in /completions endpoint 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.

Metadata

Created: 2024-04-10T18:30:48Z
Modified: 2024-04-11T15:46:18Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/04/GHSA-46cm-pfwv-cgf8/GHSA-46cm-pfwv-cgf8.json
CWE IDs: ["CWE-76"]
Alternative ID: GHSA-46cm-pfwv-cgf8
Finding: F159
Auto approve: 1