llama.cpp b7118 before b12604 Integer Underflow in Grammar Parser parse_sequence
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| ggml-org | llama.cpp | unaffected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Ggml | Llama.cpp |
|
||||||||
| Ggml-org | Llama.cpp |
|
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
No EPSS score available.
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Ggml-org
Ggml-org llama.cpp |
|
| Vendors & Products |
Ggml-org
Ggml-org llama.cpp |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | llama.cpp b7118 before b12604 Integer Underflow in Grammar Parser parse_sequence | |
| First Time appeared |
Ggml
Ggml llama.cpp |
|
| Weaknesses | CWE-191 | |
| CPEs | cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Ggml
Ggml llama.cpp |
|
| References |
|
|
| Metrics |
cvssV3_1
|
Integer Underflow (Wrap or Wraparound)