cvelo
P2 · HighCVSS 7.5

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

  • CVE-2026-137057
  • GHSA-f86p-wv5j-r5vj
  • EUVD-2026-135711

Description

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.

Text from the CVE.org record.

Affected

  • ggml-org llama.cpp

    • from b7118 to before b12604

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.