CVE-2026-43628

llama.cpp builds b3978 through b9058 contain an integer underflow and out-of-bounds read vulnerability in the DRY sampler that allows unauthenticated attackers to trigger a heap buffer underflow by sending a crafted HTTP request with dry_allowed_length set to INT32_MIN to the /v1/completions or /v1/chat/completions endpoints. Attackers can exploit this vulnerability to crash the server with SIGSEGV causing denial of service for all connected users, or corrupt token sampling probabilities by reading garbage values from memory before the allocated buffer.
Configurations

Configuration 1 (hide)

cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*

History

23 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) Las compilaciones b3978 a b9058 de llama.cpp contienen una vulnerabilidad de desbordamiento negativo de enteros y lectura fuera de límites en el muestreador DRY que permite a atacantes no autenticados activar un desbordamiento negativo de búfer de pila enviando una solicitud HTTP manipulada con dry_allowed_length establecido en INT32_MIN a los puntos finales /v1/completions o /v1/chat/completions. Los atacantes pueden explotar esta vulnerabilidad para bloquear el servidor con SIGSEGV, causando denegación de servicio para todos los usuarios conectados, o corromper las probabilidades de muestreo de tokens leyendo valores basura de la memoria antes del búfer asignado.

21 Sep 2026, 18:11

Type Values Removed Values Added
References () https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches - () https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches - Patch, Third Party Advisory
References () https://www.vulncheck.com/advisories/llama-cpp-b3978-b9058-integer-underflow-via-dry-sampler - () https://www.vulncheck.com/advisories/llama-cpp-b3978-b9058-integer-underflow-via-dry-sampler - Patch, Third Party Advisory
CPE cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*
First Time Ggml
Ggml llama.cpp

Information

Published : 2026-08-06 22:17

Updated : 2026-10-29 21:17


NVD link : CVE-2026-43628

Mitre link : CVE-2026-43628

CVE.ORG link : CVE-2026-43628


JSON object : View

Products Affected

ggml

  • llama.cpp
CWE
CWE-125

Out-of-bounds Read

CWE-191

Integer Underflow (Wrap or Wraparound)