Skip to content
DayZeroHub
Medium Not yet writtenCVSS 6.9CVE-2026-134540

CVE-2026-134540: ggml-org llama.cpp llama-server sampling.cpp common_sampler_init input validation

ggml-org llama.cpp

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-134540: medium-severity vulnerability (CVSS 6.9) in ggml-org llama.cpp.

What happened

Original description from the source: 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.

Why it matters

Medium severity, CVSS 6.9.

Affected products and versions

ggml-org llama.cpp 0.7.0-dev; ggml-org llama.cpp b12405 (fixed in b12405)

ProductVersionsFixed in
ggml-org llama.cpp0.7.0-dev—
ggml-org llama.cppb12405b12405

Action recommended by the source

Upgrade to a fixed version: b12405.

Fixed in: b12405

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-20

Relevant change history

  1. Published

    Preliminary advisory published.