CVE-2026-137057highCWE-191

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.cpp
⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.