Input Validation Flaw in ggml-org Llama.cpp Affects Remote Functionality
CVE-2026-134540
Key Information:
Badges
What is CVE-2026-134540?
A security vulnerability has been identified in the ggml-org llama.cpp product, specifically within the llama-server component. This flaw pertains to the common_sampler_init function found in common/sampling.cpp, where improper validation of the grammar_triggers[].type argument could be manipulated. As a result, this presents an opportunity for remote attacks, allowing malicious users to exploit the vulnerability. Upgrading to version b12405, which implements the patch 9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d, is recommended to address this issue. Caution is advised as this exploit has been publicly disclosed.
Affected Version(s)
llama.cpp 0.7.0-dev
llama.cpp b12405
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
CVSS V4
Timeline
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
Vulnerability published
Vulnerability Reserved
