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.
ggml-org llama.cpp GBNF Grammar llama-grammar.cpp llama_grammar_advance_stack stack-based overflow
Problem type
Affected products
ggml-org
55abc39 - AFFECTED
References
https://vuldb.com/?id.344636
https://vuldb.com/?ctiid.344636
https://vuldb.com/?submit.745263
https://github.com/ggml-org/llama.cpp/issues/18988
https://github.com/ggml-org/llama.cpp/issues/18988#event-4426704865
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/
GitHub Security Advisories
GHSA-f8m3-93xm-637c
A flaw has been found in ggml-org llama.cpp up to 55abc39. Impacted is the function...
https://github.com/advisories/GHSA-f8m3-93xm-637cA 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.
https://nvd.nist.gov/vuln/detail/CVE-2026-2069
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/ggml-org/llama.cpp
https://github.com/user-attachments/files/24761101/poc.zip
https://vuldb.com/?ctiid.344636
https://vuldb.com/?id.344636
https://vuldb.com/?submit.745263
https://github.com/advisories/GHSA-f8m3-93xm-637c
JSON source
https://cveawg.mitre.org/api/cve/CVE-2026-2069Click to expand
{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2026-2069",
"assignerOrgId": "1af790b2-7ee1-4545-860a-a788eba489b5",
"assignerShortName": "VulDB",
"dateUpdated": "2026-02-06T22:02:08.933Z",
"dateReserved": "2026-02-06T07:41:07.150Z",
"datePublished": "2026-02-06T22:02:08.933Z",
"state": "PUBLISHED"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "1af790b2-7ee1-4545-860a-a788eba489b5",
"shortName": "VulDB",
"dateUpdated": "2026-02-06T22:02:08.933Z"
},
"title": "ggml-org llama.cpp GBNF Grammar llama-grammar.cpp llama_grammar_advance_stack stack-based overflow",
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"affected": [
{
"vendor": "ggml-org",
"product": "llama.cpp",
"modules": [
"GBNF Grammar Handler"
],
"versions": [
{
"version": "55abc39",
"status": "affected"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"description": "Stack-based Buffer Overflow",
"cweId": "CWE-121",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"lang": "en",
"description": "Memory Corruption",
"cweId": "CWE-119",
"type": "CWE"
}
]
}
],
"references": [
{
"url": "https://vuldb.com/?id.344636",
"name": "VDB-344636 | ggml-org llama.cpp GBNF Grammar llama-grammar.cpp llama_grammar_advance_stack stack-based overflow",
"tags": [
"vdb-entry",
"technical-description"
]
},
{
"url": "https://vuldb.com/?ctiid.344636",
"name": "VDB-344636 | CTI Indicators (IOB, IOC, IOA)",
"tags": [
"signature",
"permissions-required"
]
},
{
"url": "https://vuldb.com/?submit.745263",
"name": "Submit #745263 | llama.cpp commit 55abc39 Stack-based Buffer Overflow",
"tags": [
"third-party-advisory"
]
},
{
"url": "https://github.com/ggml-org/llama.cpp/issues/18988",
"tags": [
"issue-tracking"
]
},
{
"url": "https://github.com/ggml-org/llama.cpp/issues/18988#event-4426704865",
"tags": [
"issue-tracking"
]
},
{
"url": "https://github.com/user-attachments/files/24761101/poc.zip",
"tags": [
"exploit"
]
},
{
"url": "https://github.com/ggml-org/llama.cpp/pull/18993",
"tags": [
"issue-tracking",
"patch"
]
},
{
"url": "https://github.com/ggml-org/llama.cpp/",
"tags": [
"product"
]
}
],
"metrics": [
{},
{
"cvssV3_1": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C",
"baseScore": 3.3,
"baseSeverity": "LOW"
}
},
{
"cvssV3_0": {
"version": "3.0",
"vectorString": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C",
"baseScore": 3.3,
"baseSeverity": "LOW"
}
},
{
"cvssV2_0": {
"version": "2.0",
"vectorString": "AV:L/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:OF/RC:C",
"baseScore": 1.7
}
}
],
"timeline": [
{
"time": "2026-02-06T00:00:00.000Z",
"lang": "en",
"value": "Advisory disclosed"
},
{
"time": "2026-02-06T01:00:00.000Z",
"lang": "en",
"value": "VulDB entry created"
},
{
"time": "2026-02-06T08:46:12.000Z",
"lang": "en",
"value": "VulDB entry last update"
}
],
"credits": [
{
"lang": "en",
"value": "TYGLS (VulDB User)",
"type": "reporter"
}
]
}
}
}