CVE-2026-134540 - ggml-org llama.cpp llama-server sampling.cpp common_sampler_init input validation
Vulnerability · Reported by NVD · · CWE-20
- Severity
- Medium Risk score 55/100
- CVSS
- 5.5 v4.0 · from NVD
- Exploit chance (EPSS)
- 0.88% Higher than 57% of CVEs
- Known exploited
- No Not in CISA KEV
Summary
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.
How this vulnerability can be exploited
This is a improper input validation flaw (CWE-20). An attacker can exploit this vulnerability remotely over the network, without any login, and without any action from a user. Attack complexity is low, so no special conditions are needed.
Is it being exploited?
The EPSS model estimates a 0.88% chance this CVE will be exploited in the next 30 days, which is low and higher than 57% of all published CVEs.
Patch priority and what to do
Patch as soon as possible, ideally within days. It is remotely reachable or critical severity, so exposure to the internet greatly increases risk. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Review logs for signs of exploitation since the publication date.
CVSS vector
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
Tags
#patch, CVE-2026-134540
Sources & references
- Original article / advisory (NVD) ↗
- NIST NVD: CVE-2026-134540 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.