HighVulnerabilityLLM-specific
CVE-2026-137057: llama.cpp integer underflow in GBNF grammar parsing enables denial of service
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-137057
- Published
- Record updated
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 1.3%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
llama.cpp versions from b7118 before b12604 contain an integer underflow in llama_grammar_parser::parse_sequence(). An unauthenticated remote attacker can send a GBNF grammar with a repetition max lower than min, such as {5,2}, in the grammar field of a llama-server /completion request, causing the process to hang and exhaust memory.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Topics
Related items
- MediumCVE-2026-143823: MLflow denial of service via regex backtracking in skill registration errorsSimilar attack, NVD/CVE Database
- MediumAutonomous AI attack targeted Perplexity to steal cloud credentialsSimilar attack, BleepingComputer
- HighCVE-2026-76813: CKAN MCP Server denial of service through unbounded response decompressionSimilar attack, NVD/CVE Database
- MediumCVE-2026-142225: Bytebase DBHub regular expression denial of service via search_objectsSimilar attack, NVD/CVE Database
- HighCVE-2026-59345: ExtractedTextFormatter denial of service when processing untrusted document textSimilar attack, NVD/CVE Database