Input Validation Flaw in ggml-org Llama.cpp Affects Remote Functionality
CVE-2026-134540

6.9MEDIUM

Key Information:

Vendor

Ggml-org

Status
Vendor
CVE Published:
21 November 2026

Badges

๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC

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

Score:
6.9
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • ๐ŸŸก

    Public PoC available

  • ๐Ÿ‘พ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

Zyz3366 (VulDB User)
.