CVE-2026-2069: ggml-org llama.cpp · Stack-based Buffer Overflow
Affects ggml-org llama.cppSource CVE Database V5
Not known to be exploited · CVSS 4.8 Medium.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 3% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:PExploitation evidence
Disclosed: evidence found.
CVE published 6 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| ggml-orgllama.cpp | Affected
| Fixed in– |
AI-suggested
To mitigate CVE-2026-2069, organizations should immediately apply the vendor-supplied patch (patch 18993) that corrects the buffer handling in the llama_grammar_advance_stack function. Beyond patching, restrict local access to systems running llama.cpp to trusted users only, employing strict access controls and monitoring for unusual local activity. Implement application whitelisting and endpoint detection and response (EDR) solutions to detect anomalous behavior indicative of exploitation attempts. Regularly audit and update all AI-related software dependencies to ensure vulnerabilities are addressed promptly. For environments where patching is delayed, consider running llama.cpp processes with the least privileges possible and within containerized or sandboxed environments to limit potential damage from exploitation. Additionally, maintain comprehensive logging and alerting on local process crashes or memory corruption events to enable rapid incident response.
Description
A flaw has been found in ggml-org llama.cpp up to 55abc39. Impacted is the function llama_grammar_advance_stack of the file llama.cpp/src/llama-grammar.cpp of the component GBNF Grammar Handler. This manipulation causes stack-based buffer overflow. The attack needs to be launched locally. The exploit has been published and may be used. Patch name: 18993. To fix this issue, it is recommended to deploy a patch.
References
- vuldb.com (opens in a new tab)
- vuldb.com (opens in a new tab)
- vuldb.com (opens in a new tab)
- github.com/ggml-org/llama.cpp/issues/18988 (opens in a new tab)
- github.com/ggml-org/llama.cpp/issues/18988 (opens in a new tab)
- github.com/user-attachments/files/24761101/poc.zip (opens in a new tab)
- github.com/ggml-org/llama.cpp/pull/18993 (opens in a new tab)
- github.com/ggml-org/llama.cpp/ (opens in a new tab)