CVE-2026-134540ggml-org Llama.cpp improper input validation
CVSS score
5.5
Medium
CVSS 4.0 from vuldb.com
Exploit probability (EPSS)
0.65%
0.65% chance of exploitation in the next 30 days, higher than 52.0% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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.
Source: NVD · CNA: cna@vuldb.com
How to fix it, step by step
Check whether you're affected
Find every system running ggml-org Llama.cpp and compare its version with the affected versions.
Watch for an official fix
No fix or advisory is listed in the official record yet. Follow the vendor's security announcements; this page updates when one is published.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- None
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Values in red make the vulnerability easier to exploit or more damaging. 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
Affected products
| Affected products | Versions |
|---|---|
| ggml-org Llama.cpp | 0.7.0-dev |
Weakness
- CWE-20 improper input validation
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-134540 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.6% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-134540?
CVE-2026-134540 has a CVSS 4.0 base score of 5.5 (medium).
Which versions are affected?
Ggml Org Llama.cpp (0.7.0-dev)
Is there a patch for CVE-2026-134540?
No patch is linked in the official record yet. Watch the vendor's security advisories.
References
- gist.github.com/Yunzez/90b17f91d7f1955805e0045a1a76fb6d#file-repro_llamacpp_grammar_triggers_abort-py
- github.com/ggml-org/llama.cpp/
- github.com/ggml-org/llama.cpp/commit/9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d
- github.com/ggml-org/llama.cpp/issues/30835
- github.com/ggml-org/llama.cpp/pull/31478
- github.com/ggml-org/llama.cpp/releases/tag/b12405
- vuldb.com/cve/CVE-2026-134540
- vuldb.com/submit/1052496
- vuldb.com/vuln/441681
- vuldb.com/vuln/441681/cti
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.