CVE-2026-134540
published medium CVSS 4.0 · 6.9ggml-org llama.cpp llama-server sampling.cpp common_sampler_init input validation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ggml-org | — | llama.cpp0.7.0-dev (affected) · b12405 (unaffected) | Version-specific | Not stated | VulDB |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- VulDB · cna
- Vector string
- 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:P
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.3 | medium | VulDB · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C | — |
| 3.0 | 5.3 | medium | VulDB · cna | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C | — |
| 2.0 | 5.0 | medium | VulDB · cna | AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ggml-org | llama.cpp | 0.7.0-dev (affected)b12405 (unaffected) | VulDB · cna |
Weaknesses
1- CWE-20 Improper Input Validation
References
10- https://gist.github.com/Yunzez/90b17f91d7f1955805e0045a1a76fb6d#file-repro_llamacpp_grammar_triggers_abort-py
- https://github.com/ggml-org/llama.cpp/
- https://github.com/ggml-org/llama.cpp/commit/9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d
- https://github.com/ggml-org/llama.cpp/issues/30835
- https://github.com/ggml-org/llama.cpp/pull/31478
- https://github.com/ggml-org/llama.cpp/releases/tag/b12405
- CVE-2026-134540 | CVE Analysis and Report https://vuldb.com/cve/CVE-2026-134540
- Submit #1052496 | ggml-org llama.cpp (llama-server) 0.7.0-dev, build 50 Denial of Service https://vuldb.com/submit/1052496
- VDB-441681 | ggml-org llama.cpp llama-server sampling.cpp common_sampler_init input validation https://vuldb.com/vuln/441681
- VDB-441681 | CTI Indicators (IOB, IOC, IOA) https://vuldb.com/vuln/441681/cti
Provider assertions
2VulDB · cna
ggml-org llama.cpp llama-server sampling.cpp common_sampler_init input validation
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 92a42078a2270d14f8f0855b1dbb8b62aefb9da528db7fdad8a44944b5451f81
- Ingested
- 23 Nov 2026, 15:48:44 UTC
- Source record
- Official CVE record