CVE-2026-137057

high
EUVD alias: EUVD-2026-135711
Assigned by CNA: vulncheck
Published 2026-11-25 · Modified 2026-11-25
CVSS v3
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4 NEW
8.7
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
VIR risk
7.5

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.

Predictions

Exploit likelihood
83%
Patch ETA
—

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

Mitigation details

Source: Debian Security Tracker · View original ↗ · DFSG

CVE-2026-137057 NameCVE-2026-137057 Descriptionllama.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,…

CVE-2026-137057

NameCVE-2026-137057
Descriptionllama.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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
llama.cpp (PTS)forky1:1.0.0+dfsg-1vulnerable
sid1:1.1.0+dfsg-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
llama.cppsource(unstable)1:1.1.0+dfsg-1

Notes

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/commit/46eb1742db6d2caec1bfa848c5702b1bdcc815e5 (v1.1.0)

Home - Debian Security - Source (Git)

Apply commands

text fix
Notes
https://github.com/ggml-org/llama.cpp/issues/32550https://github.com/ggml-org/llama.cpp/pull/32551https://github.com/ggml-org/llama.cpp/commit/46eb1742db6d2caec1bfa848c5702b1bdcc815e5 (v1.1.0)

OS impact

debian Debian Mixed 2 releases
VersionPackageStatusFixed in
sid llama.cpp Fixed 1:1.1.0+dfsg-1
forky llama.cpp Affected —

Application impact

VendorProductVersionsFixed
ggml-orgllama.cpp{"startIncluding":"b7118","endExcluding":"b12604"}b12604

References

CWEs

CWE-191

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.