All security reports
NVD security advisoryHigh

CVE-2026-137057 · ggml-org / llama.cpp

CVE-2026-137057 · Reported 25 Nov 2026

Full advisory details, affected packages, severity context, and original source.

Affected technology

ggml-org / llama.cppAffected product

Affected versions and fixes

Version information comes from OSV, NVD, and the CVE vendor record. Each source may describe a different package, release branch, or platform.

ggml-org / llama.cpp · custom

CVE vendor record
  • affected: From b7118 (inclusive) · before b12604 (exclusive) · custom

Fixed releases / commits: Not explicitly provided by this source. Check the vendor guidance.

Repository: https://github.com/ggml-org/llama.cpp

Other versions: unaffected according to the vendor record.

Advisory overview

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.

Related references

Your vulnerabilities. One clear dashboard.

Find and review known vulnerabilities across your applications and infrastructure in one dashboard, so your team can see what needs attention and take action to fix it.

Create your account