Amenazas en vivo

Todas las CVE / abetlen

CVE-2024-34359abetlen llama-cpp-python

Crítica 9.6 Sin autenticación

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.

Texto original de NVD, en inglés. La traducción y el resumen en español llegan pronto.

Qué hacer

  1. Aplica la actualización de seguridad del fabricante para llama-cpp-python.
  2. Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCó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

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.