{"answers":{"affected":"1 open source package ship an affected version, including ggml-org/llama.cpp.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-137057 exists.","exposure":"An affected version is exposed as installed. No special setting or call is needed.","fix":"Upgrade ggml-org/llama.cpp to b12604 or later.","what":"CVE-2026-137057 is a high-severity integer overflow vulnerability in ggml-org llama.cpp, published on 25 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-137057 and fix it if it is affected.\n\nWhat it is: CVE-2026-137057 is a high-severity integer overflow vulnerability in ggml-org llama.cpp, published on 25 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-137057 exists.\nExposure: An affected version is exposed as installed. No special setting or call is needed.\n\nAffected packages and fixed versions:\n- ggml-org/llama.cpp (GitHub): affected from b7118; fixed in b12604\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-137057/ (Markdown: https://insights.sbomify.com/CVE-2026-137057/index.md)","id":"CVE-2026-137057","markdown":"https://insights.sbomify.com/CVE-2026-137057/index.md","name":"CVE-2026-137057","record":{"aliases":["GHSA-f86p-wv5j-r5vj","UBUNTU-CVE-2026-137057"],"analysis":{"component_type":"library","exploitable_when_present":false,"fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"LLM inference library","requires_auth":"none","requires_specific_call":false,"summary":"Remote attackers can send a crafted grammar to llama-server completion requests to hang the process and exhaust memory.","user_interaction":"not_required","vuln_class":"integer_overflow","vulnerable_functions":["llama_grammar_parser::parse_sequence()"]},"analysis_generated_by":"sbomify/insights-2b-fp8","assigner":"VulnCheck","component":null,"cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-191","name":"Integer Underflow (Wrap or Wraparound)"}],"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.","ecosystems":["GitHub"],"exploits":{"exploitdb":0,"first_seen":"2026-11-26","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-11-26T04:40:44Z","kind":"github_poc","ref":"https://github.com/googlesky/CVE-2026-137057","stars":0,"title":"llama.cpp before b12604: grammar quantifier with max_times\u003cmin_times underflows n_opt and walks past the rule array. Verbatim range guard from PR 32551: ASan OOB write on vuln, rejected on fixed"}],"tier":"weaponised"},"has_fix":false,"headline":"llama.cpp b7118 before b12604 Integer Underflow in Grammar Parser parse_sequence","id":"CVE-2026-137057","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"GitHub","product":null,"products":[],"type":"integer_overflow","year":"2026"},"main_cpe":null,"main_fixed":["b12604"],"main_package":"ggml-org/llama.cpp","n_packages":1,"n_references":6,"n_vendor_status":0,"next":{"headline":"cron-parser through 5.10.0 Unbounded Memory Allocation via CronExpressionParser.parse()","id":"CVE-2026-137058"},"nickname":null,"packages":[{"ecosystem":"GitHub","fixed":["b12604"],"introduced":["b7118"],"last_affected":[],"name_kind":null,"package":"ggml-org/llama.cpp","purl":"pkg:github/ggml-org/llama.cpp","purl_source":"cna","scope":"upstream","source":"CVE-2026-137057"}],"prev":{"headline":"DeepSeek-Reasonix before 2.53.0 Command Execution via Auto-Approved git blame","id":"CVE-2026-137056"},"products":["llama.cpp"],"published":"2026-11-25","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","text_fixes":[],"updated":"2026-11-25","vendor_status":[],"vendors":["ggml-org"]},"summary":"Remote attackers can send a crafted grammar to llama-server completion requests to hang the process and exhaust memory.","url":"https://insights.sbomify.com/CVE-2026-137057/"}