Aller au contenu
9.8 Critique

CVE-2024-2952 BerriAI/litellm is vulnerable to Server-Side Template Injection (SSTI) via the `/completions` endpoint

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.

Produits et versions touchés

Produit Versions touchées Corrigé en
litellm 1.23 1.23.2 → < 1.34.42 1.34.42
berriai/litellm 1.34 premières → < 1.34.42 1.34.42

Références

Chronologie

  1. Publiée
  2. Dernière modification
Les 40 CVE de litellm →
Suivre cette CVE