CVE-2026-134540: ggml-org llama.cpp · Improper Input Validation
Affects ggml-org llama.cppSource CVE Database V5
Public exploit available · CVSS 6.9 Medium.
Data as of 21 Nov 2026, 23:24 UTC
Thin evidence
One scorer or none| CNA (VulDB) | CVSS 4.0 | 6.9 |
|---|---|---|
| CNA (VulDB) | CVSS 3.1 | 5.3 |
| CNA (VulDB) | CVSS 3.0 | 5.3 |
| CNA (VulDB) | CVSS 2.0 | 5.0 |
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:PExploitation evidence
Disclosed: evidence found.
CVE published 21 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
CVSS exploit maturity: proof of concept public
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CVSS vector, the Metasploit, Exploit-DB and nuclei-templates index as of 21 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| ggml-orgllama.cpp | Affected
| Fixed in– |
CPE configurations (1)
cpe:2.3:a:ggml-org:llama.cpp:*:*:*:*:*:*:*:*
AI-suggested
Upgrade the affected ggml-org llama.cpp component from version 0.7.0-dev to version b12405 or later, which contains the official patch (commit 9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d) that mitigates this vulnerability. No other mitigation actions are indicated by the vendor advisory.
Description
CVE-2026-134540 is a medium severity vulnerability in ggml-org llama.cpp version 0.7.0-dev. It involves improper input validation in the common_sampler_init function within the llama-server component. The flaw allows remote attackers to manipulate the grammar_triggers[].type argument, potentially leading to security issues. A patch identified by commit 9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d is available in version b12405, which mitigates the vulnerability. Public exploit code has been disclosed, but no known exploitation in the wild has been reported.
References
- vuldb.com/vuln/441681 (opens in a new tab)
- vuldb.com/vuln/441681/cti (opens in a new tab)
- vuldb.com/cve/CVE-2026-134540 (opens in a new tab)
- vuldb.com/submit/1052496 (opens in a new tab)
- github.com/ggml-org/llama.cpp/issues/30835 (opens in a new tab)
- github.com/ggml-org/llama.cpp/pull/31478 (opens in a new tab)
- gist.github.com/Yunzez/90b17f91d7f1955805e0045a1a76fb6d (opens in a new tab)
- github.com/ggml-org/llama.cpp/commit/9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d (opens in a new tab)
- github.com/ggml-org/llama.cpp/releases/tag/b12405 (opens in a new tab)
- github.com/ggml-org/llama.cpp/ (opens in a new tab)