CVE-2026-2069
Severity CVSS v4.0:
MEDIUM
Type:
CWE-119
Buffer Errors
Publication date:
06/02/2026
Last modified:
06/02/2026
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.
Impact
Base Score 4.0
4.80
Severity 4.0
MEDIUM
Base Score 3.x
3.30
Severity 3.x
LOW
Base Score 2.0
1.70
Severity 2.0
LOW
References to Advisories, Solutions, and Tools
- https://github.com/ggml-org/llama.cpp/
- https://github.com/ggml-org/llama.cpp/issues/18988
- https://github.com/ggml-org/llama.cpp/issues/18988#event-4426704865
- https://github.com/ggml-org/llama.cpp/pull/18993
- https://github.com/user-attachments/files/24761101/poc.zip
- https://vuldb.com/?ctiid_344636=
- https://vuldb.com/?id_344636=
- https://vuldb.com/?submit_745263=



