CVE-2026-134540ggml-org llama.cpp llama-server sampling.cpp common_sampler_init input validation
- 6.9MediumCVSS base score
- 0.65%Exploitation in 30 daysEPSS · top 48% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. A reference of the record is tagged as an exploit.
Show the exploits1
References tagged exploit1 reference
Timeline
ID reserved
By VulDB
Published
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| VulDBCNA (assigner) | 4.0 | Medium6.9 | 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 |
| VulDBCNA (assigner) | 3.1 | Medium5.3 | 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 |
| VulDBCNA (assigner) | 3.0 | Medium5.3 | 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 |
| VulDBCNA (assigner) | 2.0 | Medium5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C |
| NVDNVD · Awaiting Analysis | 4.0 | Medium5.5 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
- EPSS (exploitation in 30 days)
- 0.65% · top 48% of all CVEs (22 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.9.
Affected products
References
References10
- VDB-441681 | ggml-org llama.cpp llama-server sampling.cpp common_sampler_init input validation (opens in a new tab)vdb-entrytechnical-description
- VDB-441681 | CTI Indicators (IOB, IOC, IOA) (opens in a new tab)signaturepermissions-required
- CVE-2026-134540 | CVE Analysis and Report (opens in a new tab)third-party-advisory
- Submit #1052496 | ggml-org llama.cpp (llama-server) 0.7.0-dev, build 50 Denial of Service (opens in a new tab)third-party-advisory
- https://github.com/ggml-org/llama.cpp/issues/30835 (opens in a new tab)issue-tracking
- https://github.com/ggml-org/llama.cpp/pull/31478 (opens in a new tab)issue-trackingpatch
- https://gist.github.com/Yunzez/90b17f91d7f1955805e0045a1a76fb6d#file-repro_llamacpp_grammar_triggers_abort-py (opens in a new tab)exploit
- https://github.com/ggml-org/llama.cpp/commit/9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d (opens in a new tab)patch
- https://github.com/ggml-org/llama.cpp/releases/tag/b12405 (opens in a new tab)patch
- https://github.com/ggml-org/llama.cpp/ (opens in a new tab)product
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-132566 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-134540)Record last updated .