CVE-2026-137057: falha de alta gravidade em ggml-org llama.cpp
llama.cpp b7118 before b12604 Integer Underflow in Grammar Parser parse_sequence
Publicada em
Aviso por e-mail quando ela entrar no KEV, ganhar PoC pública ou subir de nota.
41Vexday Risk Score
Sem sinal de exploração. Ela tem prova de conceito pública.
ssvc Attendcvss 8.7epss 1.3%
da publicação à arma1 dia
Publicada no NVD25 de nov.
1ª PoC+1d
llama.cpp from b7118 before b12604 contains an integer underflow vulnerability in llama_grammar_parser::parse_sequence() that allows unauthenticated remote attackers to cause denial of service by supplying GBNF repetitions with max lower than min. Attackers can send a grammar like {5,2} in the grammar field of a llama-server /completion request, wrapping n_opt to generate endless repetition rules that hang the process and exhaust memory.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Produtos afetados
ggml-org · llama.cppPoCs públicas encontradas — 1
githubgithub.com/googlesky/CVE-2026-137057★ 0⚠ Recursos públicos, para você avaliar a exposição de sistemas que controla ou está autorizado a testar. Teste apenas com autorização.
CVEs relacionadas — ggml-org llama.cpp
No mesmo produto, das mais perigosas para as menos.
CVE-2026-34159CRITICALllama.cpp: Unauthenticated RCE via GRAPH_COMPUTE buffer=0 bypass in llama.cpp RPC backendEPSS 1.8%CVE-2026-134540MEDIUMggml-org llama.cpp llama-server sampling.cpp common_sampler_init input validationEPSS 0.9%CVE-2026-137567CRITICALllama.cpp b11450 before b12658 Out-of-Bounds Write via RPC copy_tensorEPSS 0.8%CVE-2026-43629CRITICALllama.cpp b4882–b9058 Buffer Overflow in KV Cache State RestoreEPSS 0.8%CVE-2026-119052HIGHllama.cpp b2877 before b11935 ggml-rpc Server DoS via Oversized recv_msg LengthEPSS 0.7%CVE-2026-116467MEDIUMggml-org llama.cpp Mirostat Sampler llama-sampler.cpp assertionEPSS 0.6%
Referências
https://github.com/ggml-org/llama.cpp/blob/b12603/src/llama-grammar.cpp#L519-L522https://github.com/ggml-org/llama.cpp/commit/46eb1742db6d2caec1bfa848c5702b1bdcc815e5https://github.com/ggml-org/llama.cpp/issues/32550https://github.com/ggml-org/llama.cpp/pull/32551https://github.com/ggml-org/llama.cpp/releases/tag/b12604