---
title: "CVE-2026-137057: llama.cpp - Denial of Service"
description: "llama.cpp before b12604 contains an integer underflow vulnerability in llama_grammar_parser::parse_sequence(), letting unauthenticated remote attackers cause denial of service by supplying GBNF repetitions with max lower than min in /completion requests."
url: https://panop.io/threat-heartbeat/CVE-2026-137057/
---

# CVE-2026-137057 llama.cpp - Denial of Service

llama.cpp before b12604 contains an integer underflow vulnerability in llama\_grammar\_parser::parse\_sequence(), letting unauthenticated remote attackers cause denial of service by supplying GBNF repetitions with max lower than min in /completion requests.

CVSS base score 7.5 /10

High

CISA KEV

Not listed

Public exploit

Proof of concept available

Authentication

Not required

EPSS

1.27% chance of exploitation in 30 days

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-137057)

## Details

Type

Denial of Service

Impact

Denial Of Service

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Published

25 November 2026

Updated

27 November 2026

Weakness

[CWE-191](https://cwe.mitre.org/data/definitions/191.html)

## Vendor fix

Update to version b12604 or later.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-137057](https://nvd.nist.gov/vuln/detail/CVE-2026-137057)
- [https://github.com/ggml-org/llama.cpp/releases/tag/b12604](https://github.com/ggml-org/llama.cpp/releases/tag/b12604)
- [https://www.vulncheck.com/advisories/llama-cpp-b7118-before-b12604-integer-underflow-in-grammar-parser-parse-sequence](https://www.vulncheck.com/advisories/llama-cpp-b7118-before-b12604-integer-underflow-in-grammar-parser-parse-sequence)
- [https://github.com/ggml-org/llama.cpp/blob/b12603/src/llama-grammar.cpp#L519-L522](https://github.com/ggml-org/llama.cpp/blob/b12603/src/llama-grammar.cpp#L519-L522)
- [https://github.com/ggml-org/llama.cpp/commit/46eb1742db6d2caec1bfa848c5702b1bdcc815e5](https://github.com/ggml-org/llama.cpp/commit/46eb1742db6d2caec1bfa848c5702b1bdcc815e5)
- [https://github.com/ggml-org/llama.cpp/issues/32550](https://github.com/ggml-org/llama.cpp/issues/32550)
- [https://github.com/ggml-org/llama.cpp/pull/32551](https://github.com/ggml-org/llama.cpp/pull/32551)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
