CVE-2026-137057: high-severity vulnerability in ggml-org llama.cpp
llama.cpp b7118 before b12604 Integer Underflow in Grammar Parser parse_sequence
Published
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
41Vexday Risk Score
No sign of exploitation. It has a public proof of concept.
ssvc Attendcvss 8.7epss 1.3%
from disclosure to weapon1 day
Published on NVDNov 25
1st 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
Affected products
ggml-org · llama.cpppublic PoCs found — 1
githubgithub.com/googlesky/CVE-2026-137057★ 0⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.
Related CVEs — ggml-org llama.cpp
In the same product, most dangerous first.
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%
References
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