CVE-2026-2069

medium

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

https://vuldb.com/?submit.745263

https://vuldb.com/?id.344636

https://vuldb.com/?ctiid.344636

https://github.com/user-attachments/files/24761101/poc.zip

https://github.com/ggml-org/llama.cpp/pull/18993

https://github.com/ggml-org/llama.cpp/issues/18988#event-4426704865

https://github.com/ggml-org/llama.cpp/issues/18988

https://github.com/ggml-org/llama.cpp/

Details

Source: Mitre, NVD

Published: 2026-02-06

Updated: 2026-02-06

Risk Information

CVSS v2

Base Score: 1.7

Vector: CVSS2#AV:L/AC:L/Au:S/C:N/I:N/A:P

Severity: Low

CVSS v3

Base Score: 3.3

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Severity: Low

CVSS v4

Base Score: 4.8

Vector: 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

Severity: Medium