{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-137057","published":"2026-11-25T20:18:39.307000Z","last_modified":"2026-11-25T20:18:39.450000Z","status":"Awaiting Analysis","cvss":{"version":"4.0","score":8.7,"severity":"HIGH","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"disclosure@vulncheck.com","primary":false},"auth":false,"cwes":["CWE-191"],"cpes":[],"cpes_truncated":false,"vendors":["ggml-org"],"products":["ggml-org/llama.cpp"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":76,"links":{"html_es":"/es/cve/CVE-2026-137057/","html_en":"/en/cve/CVE-2026-137057/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-137057","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-137057"},"untrusted":{"vendor_name":"ggml-org","product_name":"llama.cpp","desc_en":"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.","affected":[{"untrusted_vendor":"ggml-org","untrusted_product":"llama.cpp"}],"references":[{"url":"https://github.com/ggml-org/llama.cpp/blob/b12603/src/llama-grammar.cpp#L519-L522","tags":[]},{"url":"https://github.com/ggml-org/llama.cpp/commit/46eb1742db6d2caec1bfa848c5702b1bdcc815e5","tags":[]},{"url":"https://github.com/ggml-org/llama.cpp/issues/32550","tags":[]},{"url":"https://github.com/ggml-org/llama.cpp/pull/32551","tags":[]},{"url":"https://github.com/ggml-org/llama.cpp/releases/tag/b12604","tags":[]},{"url":"https://www.vulncheck.com/advisories/llama-cpp-b7118-before-b12604-integer-underflow-in-grammar-parser-parse-sequence","tags":[]}]}}