1. Archivio CVE
  2. 2024
  3. CVE-2024-2952

CVE-2024-2952

9.8 Gravità critica CVSS v3.0 · fonte NVD CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 9.8 – Critica

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
litellm litellm < 1.34.42 –
Tutte le 49 vulnerabilità di Litellm

Tipo di vulnerabilità

CWE-76 Improper Neutralization of Equivalent Special Elements

The product correctly neutralizes certain special elements, but it improperly neutralizes equivalent special elements.

Impatto sui sistemi

AmbitoImpatto
Altro Altro

Come si previene

Requisiti Programming languages and supporting technologies might be chosen which are not subject to these issues.
Sviluppo Utilize an appropriate mix of allowlist and denylist parsing to filter equivalent special element syntax from all input.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 13 CVE di tipo CWE-76, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org