CVE-2026-134540
ggml-org llama.cpp llama-server sampling.cpp common_sampler_init input validation
Medium · 6.9
- CVSS
- 6.9
- EPSS
- 0.88% (p57)
- Published
- 2026-11-21
- Age
- 8d old
- Modified
- 2026-11-23
- Product
- ggml-org llama.cpp
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
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.
Sources
- NVD · first seen 8d ago · NVD terms of use
- OSV · first seen 7d ago · CC-BY 4.0
- CVE List · first seen 8d ago · CVE Terms of Use
References
- https://vuldb.com/vuln/441681 vdb-entry
- https://vuldb.com/vuln/441681/cti signature
- https://vuldb.com/cve/CVE-2026-134540 third-party-advisory
- https://vuldb.com/submit/1052496 third-party-advisory
- https://github.com/ggml-org/llama.cpp/issues/30835 issue-tracking
- https://github.com/ggml-org/llama.cpp/pull/31478 issue-tracking
- https://gist.github.com/Yunzez/90b17f91d7f1955805e0045a1a76fb6d#file-repro_llamacpp_grammar_triggers_abort-py exploit
- https://github.com/ggml-org/llama.cpp/commit/9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d patch
- https://github.com/ggml-org/llama.cpp/releases/tag/b12405 patch
- https://github.com/ggml-org/llama.cpp/ product
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134540.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-134540 advisory