CVE-2024-34359abetlen llama-cpp-python
Crítica 9.6 Sin autenticación
Seguir: esta CVE · abetlen · abetlen llama-cpp-python Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 73
- CVSS 3.1
- 9.6
- EPSS
- 1.3% probabilidad de explotación en 30 días · percentil 72
- Requiere autenticación
- No
- Publicada
- 14 may 2024
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-76
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: no · Impacto técnico: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Qué pasa
llama-cpp-python is the Python bindings for llama.cpp. `llama-cpp-python` depends on class `Llama` in `llama.py` to load `.gguf` llama.cpp or Latency Machine Learning Models. The `__init__` constructor built in the `Llama` takes several parameters to configure the loading and running of the model. Other than `NUMA, LoRa settings`, `loading tokenizers,` and `hardware settings`, `__init__` also loads the `chat template` from targeted `.gguf` 's Metadata and furtherly parses it to `llama_chat_format.Jinja2ChatFormatter.to_chat_handler()` to construct the `self.chat_handler` for this model. Nevertheless, `Jinja2ChatFormatter` parse the `chat template` within the Metadate with sandbox-less `jinja2.Environment`, which is furthermore rendered in `__call__` to construct the `prompt` of interaction. This allows `jinja2` Server Side Template Injection which leads to remote code execution by a carefully constructed payload.
Qué hacer
- Aplica la actualización de seguridad del fabricante para llama-cpp-python.
- 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 | llama-cpp-python |
≥ 0.2.30 < 0.2.72 |
0.2.72 |
pip install "llama-cpp-python>=0.2.72" |
| PyPI | llama-cpp-python |
≥ 0.2.30 < 0.2.72 |
0.2.72 |
pip install "llama-cpp-python>=0.2.72" |
Según OSV / GitHub Advisories (GHSA-56xg-wfcc-g829, PYSEC-2026-392). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- abetlen · llama-cpp-python
Según el CNA que publicó la CVE. NVD todavía no cargó los CPE con versiones.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.