# CVE-2026-2069: ggml-org llama.cpp GBNF Grammar llama-grammar.cpp llama_grammar_advance_stack stack-based overflow

- Severity: Medium 4.8 (CVSS:4.0, scored by VulDB) `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:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-06T22:02:08.933Z
- Modified: 2026-06-17T10:30:14.863Z
- Weaknesses: CWE-119, CWE-121
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- ggml-org llama.cpp: 55abc39

## Every score

- VulDB: CVSS:4.0 4.8 Medium `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:P`
- VulDB: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:3.0 3.3 Low `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:2.0 1.7 Low `AV:L/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:OF/RC:C`

## References

- <https://github.com/user-attachments/files/24761101/poc.zip> (exploit)
- <https://vuldb.com/?id.344636> (technical-description, vdb-entry)
- <https://vuldb.com/?ctiid.344636> (permissions-required, signature)
- <https://vuldb.com/?submit.745263> (third-party-advisory)
- <https://github.com/ggml-org/llama.cpp/issues/18988> (issue-tracking)
- <https://github.com/ggml-org/llama.cpp/issues/18988#event-4426704865> (issue-tracking)
- <https://github.com/ggml-org/llama.cpp/pull/18993> (issue-tracking, patch)
- <https://github.com/ggml-org/llama.cpp/> (product)

## Sources

- CVE List: [CVE-2026-2069](https://www.cve.org/CVERecord?id=CVE-2026-2069), CVE Terms of Use, modified 2026-02-23
- NVD: [CVE-2026-2069](https://nvd.nist.gov/vuln/detail/CVE-2026-2069), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-2069 · Whole record: https://cve.day/CVE-2026-2069.json · Rebuilt by cve.day 2026-11-25T22:59:13.588Z
