CVE-2026-134540

Source
https://cve.org/CVERecord?id=CVE-2026-134540
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-134540.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-134540
Published
2026-11-21T23:00:23Z
Modified
2026-11-22T01:00:08Z
Severity
  • 5.5 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P CVSS Calculator
Summary
ggml-org llama.cpp llama-server sampling.cpp common_sampler_init input validation
Details

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.

Database specific
{
    "cna_assigner": "VulDB",
    "cwe_ids": [
        "CWE-20"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134540.json"
}
References

Affected packages

Git / github.com/ggml-org/llama.cpp

Affected ranges

Type
GIT
Repo
https://github.com/ggml-org/llama.cpp
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "0.7.0-dev"
                },
                {
                    "last_affected": "0.7.0-dev"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandaloneSingleVersion"
        },
        {
            "range": [
                {
                    "fixed": "9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "original_tag": "b12405",
            "range": [
                {
                    "fixed": "9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d"
                }
            ],
            "source": "REFERENCES_TAG"
        }
    ]
}

Affected versions

0.*
0.7.0-dev
Other
b11669
v0.*
v0.7.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-134540.json"