llama.cpp from b7118 before b12604 contains an integer underflow vulnerability in llama_grammar_parser::parse_sequence() that allows unauthenticated…
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.
Read at NIST National Vulnerability Database (CVE API 2.0)
- Vendor
- Ggml-Org
- Product
- llama.cpp
- CVSS v3.1
- 7.5 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Exploitation
- SSVC poc, automatable yes, impact partial
- Weakness
- CWE-191
- Exposure class
- AI infrastructure
- NVD status
- Awaiting Analysis
Why it ranks 46 (High)
- Public exploit code reported
- CVSS v3.1 7.5 high
- SSVC: automatable
- Product class: AI infrastructure
- Recency: items published within 24 hours gain 15, within 72 hours 6, within 7 days 2.