CVE-2026-2069 Details
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.
A stack-based buffer overflow vulnerability has been identified in ggml-org llama.cpp versions prior to commit 55abc39. The issue arises in the GBNF Grammar Handler, specifically within the function llama_grammar_advance_stack, located in the file llama.cpp/src/llama-grammar.cpp. This vulnerability is triggered by nested repetition patterns in GBNF grammar, leading to infinite recursion and a stack overflow. The vulnerability must be exploited locally, and a public exploit is available.
Users are advised to update to the version of ggml-org llama.cpp that includes the patch for this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 6, 2026CISA-ADP
Assessed Feb 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ggml-org/llama.cpp/ | [email protected] | Vendor |
| https://github.com/ggml-org/llama.cpp/issues/18988 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/ggml-org/llama.cpp/issues/18988#event-4426704865 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/ggml-org/llama.cpp/pull/18993 | [email protected] | Issue TrackingVendor |
| https://github.com/user-attachments/files/24761101/poc.zip | [email protected] | Broken LinkExploit |
| https://vuldb.com/?ctiid.344636 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/?id.344636 | [email protected] | AdvisoryExploitRemedy |
| https://vuldb.com/?submit.745263 | [email protected] | Technical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer | [email protected] |
| CWE-121 | Stack-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ggml-org llama.cpp | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Feb 6, 2026 | New CVE Received | [email protected] |
Volerion