CVE-2025-49847
CVE-2025-49847 · llama.cpp Vulnerable to Buffer Overflow via Malicious GGUF Model
Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.
llama.cpp is an inference of several LLM models in C/C++. Prior to version b5662, an attacker‐supplied GGUF model vocabulary can trigger a buffer overflow in llama.cpp’s vocabulary‐loading code. Specifically, the helper _try_copy in llama.cpp/src/vocab.cpp: llama_vocab::impl::token_to_piece() casts a very large size_t token length into an int32_t, causing the length check (if (length < (int32_t)size)) to be bypassed. As a result, memcpy is still called with that oversized size, letting a malicious model overwrite memory beyond the intended buffer. This can lead to arbitrary memory corruption and potential code execution. This issue has been patched in version b5662.
CVSS 8.8 · Alta · EPSS 0,5% · Corrección disponible
- Publicación
- Actualización
Pila tecnológica: system
Productos y versiones afectados
llama.cpp
- Versiones
- < b5662: Afectada
Sin corrección publicada
llama.cpp Debian:14
- Versiones
- 5151+dfsg-1~exp2
- 5151+dfsg-1~exp3
- 5318+dfsg-1
- 5318+dfsg-2
- Intervalos de versiones afectados
- ECOSYSTEM: < 5713+dfsg-1
Actualiza a 5713+dfsg-1
llama.cpp Ubuntu:25.10
- Versiones
- 5318+dfsg-1
- 5318+dfsg-2
- 5713+dfsg-1
- 5760+dfsg-1
- 5760+dfsg-3
- 5760+dfsg-4
- 5882+dfsg-2
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
llama.cpp Ubuntu:26.10
- Versiones
- 8681+dfsg-1
- 9721+dfsg-1ubuntu1
- 10438+dfsg-1
- 10438+dfsg-1ubuntu1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
llama.cpp Ubuntu:26.04:LTS
- Versiones
- 5882+dfsg-2
- 8064+dfsg-1ubuntu1
- 8681+dfsg-1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada