8.7
HIGH CVSS 4.0
CVE-2026-137057
llama.cpp b7118 before b12604 Integer Underflow in Grammar Parser parse_sequence
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.

INFO

Published Date :

Nov. 25, 2026, 7:33 p.m.

Last Modified :

Nov. 25, 2026, 7:33 p.m.

Remotely Exploit :

Yes !

Source :

VulnCheck
Affected Products

The following products are affected by CVE-2026-137057 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Ggml llama.cpp
1 Ggml-org llama.cpp
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH 83251b91-4cc7-4094-a5c7-464a1b83ea10
CVSS 3.1 HIGH MITRE-CVE
CVSS 4.0 HIGH 83251b91-4cc7-4094-a5c7-464a1b83ea10
Solution
Update llama.cpp to the latest version to fix an integer underflow in grammar parsing.
  • Update llama.cpp to version b12604 or later.
  • Ensure grammars use valid min/max repetition ranges.
  • Validate user-supplied grammar input carefully.
  • Monitor server resource usage.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-137057 vulnerability anywhere in the article.

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.