Vulnerability

CVE-2026-137057

highCVSS 4.0 8.7Published 25 Nov 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /ggml-org/llama.cpp/blob/b12603/src/llama-grammar.cpp
  • github.com /ggml-org/llama.cpp/commit/46eb1742db6d2caec1bfa848c5702b1b…
  • github.com /ggml-org/llama.cpp/issues/32550
  • github.com /ggml-org/llama.cpp/pull/32551
  • github.com /ggml-org/llama.cpp/releases/tag/b12604
  • www.vulncheck.com /advisories/llama-cpp-b7118-before-b12604-integer-underflow…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning