{"vuln_id":"CVE-2026-134540","aliases":[],"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.","published_at":"2026-11-21T23:16:55.030000Z","modified_at":"2026-11-21T23:16:55.180000Z","first_seen_at":"2026-11-22T08:08:01.744612Z","severity":"medium","severity_source":"nvd","cvss_score":5.5,"cvss_vector":"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cwe":["CWE-20"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":"Awaiting Analysis","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-134540"},"matched_alias":null,"items":[{"id":11391,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-134540: 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 th…","summary":"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.\n\nReferences:\nhttps://gist.github.com/Yunzez/90b17f91d7f1955805e0045a1a76fb6d#file-repro_llamacpp_grammar_triggers_abort-py\nhttps://github.com/ggml-org/llama.cpp/\nhttps://github.com/ggml-org/llama.cpp/commit/9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d\nhttps://github.com/ggml-org/llama.cpp/issues/30835\nhttps://github.com/ggml-org/llama.cpp/pull/31478\nhttps://github.com/ggml-org/llama.cpp/releases/tag/b12405\nhttps://vuldb.com/cve/CVE-2026-134540\nhttps://vuldb.com/submit/1052496\nhttps://vuldb.com/vuln/441681\nhttps://vuldb.com/vuln/441681/cti","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-134540","published_at":"2026-11-21T23:16:55.030000Z","updated_at":"2026-11-21T23:16:55.180000Z","fetched_at":"2026-11-22T08:08:01.653634Z","severity":"medium","cvss_score":5.5,"epss":null,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-134540","vuln_ids":["CVE-2026-134540"],"tags":["CWE-20"],"cluster_id":10943,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11391","html":"https://vulnwatch.ve1ve2.com/item/11391"}}]}