CVE-2026-134540

llama-server grammar-trigger input could abort the serving process

ggml-org · llama.cpp · llama-server

First documented disclosure · Review checkpoint

Summary

An out-of-range grammar-trigger type could terminate the server rather than reject one request.

Severity and exploitation evidence

Medium · 6.9/10 · CVSS 4.0. Severity source.

Exploitation not established: The reviewed sources document a weakness or controlled demonstration; malicious exploitation against users is not established.

Exploitation evidence source

Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.

How the weakness works

Request integers were cast to a trigger enum and reached a fatal assertion in common_sampler_init.

Conditions required

A reachable completion or v1/completions endpoint uses the non-llguidance path. Default unauthenticated deployments are exposed; chat-completions strips the field and was not the demonstrated path.

Potential impact

Process-wide denial of service affecting other requests.

Affected versions and configurations

CNA identifies 0.7.0-dev; the reporter tested development build 50 at 0ce8cd1 and a macOS control. The complete introduction range is not established.

Fix and mitigation status

Commit 9f26fe11, included in b12405, published November 15 and explicitly marked Pre-release by the project.

Practical next steps

Deploy a build containing 9f26fe11 after validating the prerelease in your environment; restrict network access and require authentication while vulnerable.

Operating lesson

Reject invalid request enums without invoking process-fatal assertions.

Evidence and limits

Public issue October 19; correction PR October 31, merged November 14; b12405 prerelease November 15; CNA ingestion November 21. VulDB assigns CVSS 4.0 6.9 and 3.1 5.3. Static review shows the assertion replaced by a runtime error handled as a bad request. A proposed regression test was removed before merge; this review does not claim it shipped or that the prerelease is a stable version. Public controlled reproduction is not evidence of malicious exploitation.

Sources