CVE-2026-134540: ggml-org llama.cpp 0.7.0-dev · Improper Input Validation
Source GCVE Database
Public exploit available · CVSS 6.9 Medium.
Data as of 22 Nov 2026, 01:12 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– |
GitHubggml-org/llama.cpppkg:github/ggml-org/llama.cppOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade the affected component to version b12405, which includes the patch 9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d that mitigates this vulnerability. No other mitigation steps are indicated.
Description
A security vulnerability in ggml-org llama.cpp 0.7.0-dev affects the common_sampler_init function in common/sampling.cpp of the llama-server component. Improper input validation of the grammar_triggers[].type argument can be exploited remotely. The vulnerability has been publicly disclosed and exploit code may exist. Upgrading to version b12405 with patch 9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d mitigates the issue.
References
- nvd.nist.gov/vuln/detail/CVE-2026-134540 (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)
- github.com/ggml-org/llama.cpp/commit/9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d (opens in a new tab)
- gist.github.com/Yunzez/90b17f91d7f1955805e0045a1a76fb6d (opens in a new tab)
- github.com/ggml-org/llama.cpp (opens in a new tab)
- github.com/ggml-org/llama.cpp/releases/tag/b12405 (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)
- vuldb.com/vuln/441681 (opens in a new tab)
- vuldb.com/vuln/441681/cti (opens in a new tab)