CVE-2026-134540
Awaiting Analysis Awaiting Analysis - Queue

Improper Input Validation in llama.cpp via grammar_triggers Type Manipulation

Vulnerability report for CVE-2026-134540, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-21

Last updated on: 2026-11-21

Assigner: VulDB

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-21
Last Modified
2026-11-21
Generated
2026-11-22
AI Q&A
2026-11-22
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
ggml-org llama.cpp to b12405 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-20 The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is in ggml-org llama.cpp 0.7.0-dev, specifically in the common_sampler_init function of common/sampling.cpp in the llama-server component. It involves improper input validation due to manipulation of the grammar_triggers[].type argument, allowing remote attack execution. The issue has been publicly disclosed and a patch exists.

Detection Guidance

The vulnerability affects ggml-org llama.cpp 0.7.0-dev in the llama-server component. Check the version of llama.cpp installed on your system. If it is version 0.7.0-dev, the system is vulnerable. Commands like 'llama-server --version' or checking package managers for installed versions can help detect this.

Impact Analysis

The vulnerability allows remote attackers to exploit improper input validation, potentially leading to unauthorized actions or system compromise. Since it affects a server component, it could enable remote code execution or denial of service if exploited.

Compliance Impact

This vulnerability does not directly impact compliance with GDPR or HIPAA as it primarily involves improper input validation in a specific function of the llama.cpp library. However, if exploited, it could lead to unauthorized remote access or manipulation of the system, which may indirectly affect compliance by compromising data integrity or confidentiality.

Mitigation Strategies

Upgrade ggml-org llama.cpp to version b12405 or later. The patch is identified as 9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d. Remove or disable the vulnerable component if upgrading is not immediately possible.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-134540. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...