llamaCVEVulnerability Intelligence
/
llama.cpp

CVE-2026-116816

llama.cpp b5899 before b10261 Heap Out-of-Bounds Write via plamo2 Tokenizer

Specific setups onlyParche disponibleout-of-bounds access
Descargar PNG JSON
CVSS 4.0
8.5
Alta
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N Fuente: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónb10261
Exposición23 dDesde la divulgación, 26 oct 2026, 7:33 p. m.
Detección39 minDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Sin explotación conocida, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
Remediación
Monitoreo
Detectada +3
Verificada
27 oct 26
31 oct 26
16 nov 26
19 nov 26
27 oct 26
1 nov 26
7 nov 26
13 nov 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-116816 divulgada · CVSS 8.5 (CNA)
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Monitoreo Fuente: ENISA EUVD Registro visto por primera vez en ENISA EUVD
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0

llama.cpp, an open-source library for running large language models, is affected by this vulnerability in its PLaMo-2 tokenizer. A maliciously crafted GGUF model file can corrupt memory while loading, which could crash the software or potentially allow an attacker to run arbitrary code.

Affects llama.cpp builds from b5899 up to b10261 when a model's plamo2 tokenizer contains a malformed byte token. The fix is in b10261.

¿Qué significa?A byte-typed token whose text has the form <0xNN> with a negative or non-hex value makes the parser return -1, which causes a heap out-of-bounds write in the plamo2 tokenizer. The example given is a token with the text "<0x-1>".
¿Quién está afectado?The range is llama.cpp builds from b5899 up to but not including b10261. The issue needs a model whose token list includes a byte-typed token with such text, so check the build tag reported by llama.cpp and the model's tokenizer vocabulary.
¿Qué hacer?Upgrade llama.cpp to b10261 or a later build.
Descripción original del registro (VulnCheck)

llama.cpp b5899 before b10261 contains a heap out-of-bounds write vulnerability in llm_tokenizer_plamo2::build that allows attackers to corrupt heap memory via crafted GGUF models. Attackers can supply BYTE-typed token text like <0x-1> whose negative parsed value writes token ids before the bytes_ buffer during model loading, causing crashes or potential code execution.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
The model contains a byte-typed token whose text is of the form <0xNN> with a negative or non-hex NN value.“A byte-typed token ( token_type = 6 ) whose text is "<0x-1>" makes std::stoi return -1”
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:L
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:N
NingunoPresentes
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:P
NingunaPasivaActiva
Confid. (sistema)VC:H
AltoBajoNinguno
Integridad (sistema)VI:H
AltoBajoNinguno
Disponib. (sistema)VA:H
AltoBajoNinguno
Confid. (posterior)SC:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
llama.cpp≥ b5899 < b10261
b10261
b5899
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
llama.cpp
Corregida b10261 — —
Versiones corregidasb10261
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Parchehttps://github.com/ggml-org/llama.cpp/pull/25969
Parchehttps://github.com/ggml-org/llama.cpp/pull/26511
Parchehttps://github.com/ggml-org/llama.cpp/commit/cf06ad7dfe79e7bf2934150d4fefe1ce8db05490
Otrahttps://github.com/ggml-org/llama.cpp/blob/b10259/src/llama-vocab.cpp#L1376-L1377
Otrahttps://github.com/ggml-org/llama.cpp/releases/tag/b10261
Otrahttps://www.vulncheck.com/advisories/llama-cpp-b5899-before-b10261-heap-out-of-bounds-write-via-plamo2-tokenizer

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.