Improper input validation in llama.cpp llama-server sampler initialization
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
ggml-org llama.cpp 0.7.0-dev is affected through the llama-server component, where the common_sampler_init function in common/sampling.cpp does not properly validate input. Manipulating the grammar_triggers[].type argument leads to improper input validation (CWE-20). A remote attacker can launch the attack, and a public exploit has been disclosed and may be used.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
Description from the CNA
A security vulnerability has been detected in ggml-org llama.cpp 0.7.0-dev. This affects the function common_sampler_init of the file common/sampling.cpp of the component llama-server. Such manipulation of the argument grammar_triggers[].type leads to improper input validation. It is possible to launch the attack remotely. The exploit has been disclosed publicly and may be used. Upgrading to version b12405 mitigates this issue. The name of the patch is 9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d. It is advisable to upgrade the affected component.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ggml-org | llama.cpp | 0.7.0-dev | b12405 | Patch available | CNA |
- llama.cpp Vendorggml-org Affected 0.7.0-dev Fixed in b12405 Patch available CNA
CPE names CNA · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ggml-org:llama.cpp:*:*:*:*:*:*:*:* | — | — | — |
- cpe:2.3:a:ggml-org:llama.cpp:*:*:*:*:*:*:*:* Versions — — ·—
Remediation
Upgrade ggml-org llama.cpp to version b12405, which fixes this issue with patch 9f26fe1.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
- Fix · CNA llama.cpp (ggml-org) Fixed in b12405
Timeline
- 2026-11-21 Threatist record created from CVE-2026-134540
- 2026-11-22 Alias added: GHSA-3c6w-v5cw-pq7q
- 2026-11-23 CISA SSVC decision points changed
References
Patch 3
More ggml-org vulnerabilities
- TI-2026-26459 llama.cpp: Unauthenticated RCE via GRAPH_COMPUTE buffer=0 bypass in llama.cpp RPC backend CVSS 3.1CRITICAL 9.8
- TI-2024-28446 llama.cpp allows Arbitrary Address Read in rpc_server::get_tensor CVSS 3.1CRITICAL 9.8
- TI-2026-98417 Integer underflow in llama.cpp grammar parser allows remote DoS CVSS 4.0HIGH 8.7
- TI-2026-17570 llama.cpp has Out-of-bounds Write in llama-server CVSS 3.1CRITICAL 9.8
- TI-2024-28447 llama.cpp allows write-what-where in rpc_server::set_tensor CVSS 3.1CRITICAL 10.0
- TI-2024-15627 Integer overflow in ggml-org llama.cpp CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-134540 · CVE Program
- CVE-2026-134540 · NVD
- FIRST EPSS
- GHSA-3c6w-v5cw-pq7q · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences