CVE-2024-2952Litellm
Crítica 9.8 Sin autenticación
Seguir: esta CVE · Litellm · Litellm Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 74
- CVSS 3.0
- 9.8
- EPSS
- 1.5% probabilidad de explotación en 30 días · percentil 74
- Requiere autenticación
- No
- Publicada
- 10 abr 2024
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-76
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: sí · Impacto técnico: total
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Qué pasa
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.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Litellm.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| PyPI | litellm |
< 1.34.42 |
1.34.42 |
pip install "litellm>=1.34.42" |
| PyPI | litellm |
< 1.34.42 |
1.34.42 |
pip install "litellm>=1.34.42" |
Según OSV / GitHub Advisories (GHSA-46cm-pfwv-cgf8, PYSEC-2026-387). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| litellm | litellm | < 1.34.42 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch
- huntr.com Exploit Third Party Advisory