Vulnerability record
CVE-2026-137057
The short answer
CVE-2026-137057 affects ggml-org llama.cpp and is rated high (CVSS 7.5). It is not in CISA's KEV catalog; EPSS puts the chance of exploitation in the next 30 days at 1.3%.
What it is
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.
Weakness: CWE-191.
Severity
7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Exploited (CISA KEV)
Not listed
CISA lists confirmed exploitation only
EPSS, next 30 days
1.3%
Higher than 70% of scored CVEs
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Affected products
llama.cpp. NVD's record lists the exact affected versions.
References
- github.com/ggml-org/llama.cpp/blob/b12603/src/llama-grammar.cpp#L519-L522
- github.com/ggml-org/llama.cpp/commit/46eb1742db6d2caec1bfa848c5702b1bdcc815e5
- 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-in-grammar-parser-parse-sequence
- github.com/ggml-org/llama.cpp/issues/32550
Questions
Is CVE-2026-137057 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog as of 2026-11-26. FIRST's EPSS estimates a 1.3% chance of exploitation in the next 30 days.
How do I fix CVE-2026-137057?
Follow the vendor advisory in the references below. NVD lists the affected versions under its configurations.
From NVD, CISA KEV, FIRST EPSS and OSV.dev, checked . Status on NVD: Awaiting Analysis. The description is NVD's text, quoted as published.
Related
Newly exploited vulnerabilities, every Monday
What CISA added to its KEV catalog that week, and the Critical CVEs most likely to be exploited. One email a week, one click to stop.
Know the day a CVE lands in your code
Connect a GitHub repository and ZeusQA checks its dependencies daily, briefs each advisory and opens the fix. Three test runs free, no card.