Buffer overflow in Ggml-Org Llama.cpp
CVE-2026-2069
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 3.3 (Low). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS 0.001, 4.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Ggml-Org Llama.cpp — versions 55abc39
Weakness classification (CWE)
References
- VDB-344636 | ggml-org llama.cpp GBNF Grammar llama-grammar.cpp llama_grammar_advance_stack stack-based overflow (technical-description, vdb-entry)
- VDB-344636 | CTI Indicators (IOB, IOC, IOA) (signature, permissions-required)
- Submit #745263 | llama.cpp commit 55abc39 Stack-based Buffer Overflow (third-party-advisory)
- github.com/ggml-org/llama.cpp/issues/18988 (issue-tracking)
- github.com/ggml-org/llama.cpp/issues/18988 (issue-tracking)
- github.com/user-attachments/files/24761101/poc.zip (exploit)
- github.com/ggml-org/llama.cpp/pull/18993 (issue-tracking, patch)
- github.com/ggml-org/llama.cpp/ (product)