An integer underflow vulnerability exists in llama.cpp versions from b7118 before b12604 within the function llama_grammar_parser::parse_sequence(). This flaw allows unauthenticated remote attackers to cause a denial of service by supplying grammar repetitions where the maximum is lower than the minimum, leading to endless repetition rules that hang the process and exhaust memory.