{"id":"CVE-2026-137057","aliases":[],"cve":{"records":[{"id":"CVE-2026-137057","source":"VulnCheck","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-11-25T17:56:22.644Z","published":"2026-11-25T19:33:20.574Z","modified":"2026-11-25T19:53:43.377Z"}],"publishers":[{"name":"VulnCheck","role":"CNA","organizationId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","modified":"2026-11-25T19:33:20.574Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-11-25T19:53:43.377Z"}],"references":[{"url":"https://github.com/ggml-org/llama.cpp/issues/32550","tags":["issue-tracking"],"source":"VulnCheck"},{"url":"https://github.com/ggml-org/llama.cpp/pull/32551","tags":["issue-tracking","patch"],"source":"VulnCheck"},{"url":"https://github.com/ggml-org/llama.cpp/commit/46eb1742db6d2caec1bfa848c5702b1bdcc815e5","tags":["patch"],"source":"VulnCheck"},{"url":"https://github.com/ggml-org/llama.cpp/blob/b12603/src/llama-grammar.cpp#L519-L522","tags":["technical-description"],"source":"VulnCheck"},{"url":"https://github.com/ggml-org/llama.cpp/releases/tag/b12604","tags":["release-notes"],"source":"VulnCheck"},{"url":"https://www.vulncheck.com/advisories/llama-cpp-b7118-before-b12604-integer-underflow-in-grammar-parser-parse-sequence","tags":["third-party-advisory"],"source":"VulnCheck"},{"url":"https://github.com/ggml-org/llama.cpp/issues/32550","tags":["exploit"],"source":"CISA-ADP"}],"weaknesses":[{"id":"CWE-191","description":"Integer Underflow (Wrap or Wraparound)","source":"VulnCheck"}],"applicability":[{"source":"VulnCheck","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*","versionStartIncluding":"b7118","versionEndExcluding":"b12604"}]}]}]}],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-11-25T19:53:21.993692Z","decisions":[{"name":"Exploitation","value":"poc"},{"name":"Automatable","value":"yes"},{"name":"Technical Impact","value":"partial"}]}]},"title":"llama.cpp b7118 before b12604 Integer Underflow in Grammar Parser parse_sequence","titleSource":"VulnCheck","descriptionSource":"VulnCheck","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.","score":8.7,"severity":"high","published":"2026-11-25T19:33:20.574Z","modified":"2026-11-25T19:53:43.377Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"ggml-org","name":"llama.cpp","platforms":[],"versions":[{"version":"b7118","status":"affected","lessThan":"b12604","versionType":"custom"}],"defaultStatus":"unaffected","packageURL":"pkg:github/ggml-org/llama.cpp","cpes":[],"source":"VulnCheck","url":"https://www.cve.org/CVERecord?id=CVE-2026-137057"}],"remediation":[],"references":["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","https://github.com/ggml-org/llama.cpp/blob/b12603/src/llama-grammar.cpp#L519-L522","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"],"sources":[{"name":"CVE","id":"CVE-2026-137057","modified":"2026-11-25T19:53:43.377Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-137057"}],"assessments":[{"source":"VulnCheck","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","score":8.7},{"source":"VulnCheck","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5}],"sourceAffected":[],"observedAt":"2026-11-25T19:58:01.130Z","kev":{"status":"not-listed","checkedAt":"2026-11-28T19:30:31.152Z"},"coverage":[{"source":"NVD","status":"no-result","checkedAt":"2026-11-25T20:00:32.207Z","attemptedAt":"2026-11-25T20:00:32.207Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-25T20:00:32.204Z","attemptedAt":"2026-11-25T20:00:32.204Z"},{"source":"EUVD","status":"no-result","checkedAt":"2026-11-25T20:00:33.149Z","attemptedAt":"2026-11-25T20:00:33.149Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-25T20:00:32.207Z","attemptedAt":"2026-11-25T20:00:32.207Z"}],"evidence":[],"aiSummary":{"text":"llama.cpp versions b7118 before b12604 have an integer underflow vulnerability in the Grammar Parser's parse_sequence function, allowing unauthenticated remote attackers to cause a denial of service. Attackers can send a malicious grammar to exhaust memory. The vulnerability is due to GBNF repetitions with max lower than min.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-25T20:01:06.110Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-137057"}]}}