freenode

← CVE tracker

CVE-2026-137057

llama.cpp b7118 before b12604 Integer Underflow in Grammar Parser parse_sequence

Severity
high CVSS 8.7 (v4.0)
Affects
llama.cpp · ggml-org
Weakness
CWE-191: Integer Underflow (Wrap or Wraparound)
Published
25 November 2026 by VulnCheck
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.

Our coverage

We have not written about this one. Know why it matters? Send a tip.