CVE-2026-2069
Stack-Based Buffer Overflow in ggml-org llama.cpp GBNF Handler
Publication date: 2026-02-06
Last updated on: 2026-04-29
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| ggml-org | llama.cpp | to 55abc39 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-119 | The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. |
| CWE-121 | A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function). |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a flaw found in the ggml-org llama.cpp project, specifically in the function llama_grammar_advance_stack within the GBNF Grammar Handler component. It causes a stack-based buffer overflow, which means that the program writes more data to a buffer located on the stack than it can hold, potentially leading to unexpected behavior or crashes.
The vulnerability requires local access to the system to be exploited, and an exploit has already been published. To address this issue, it is recommended to apply the provided patch.
How can this vulnerability impact me? :
This vulnerability can impact you by allowing a local attacker to cause a stack-based buffer overflow, which may lead to denial of service or potentially other unintended behaviors depending on how the overflow is exploited.
Since the attack requires local access, remote exploitation is not possible, but an attacker with local privileges could leverage this flaw to disrupt the normal operation of the affected software.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, it is recommended to deploy the patch named 18993 that fixes the issue in the llama_grammar_advance_stack function of the GBNF Grammar Handler component.
Since the attack requires local access, limiting local user privileges and access can also help reduce risk.