CVE-2026-134540ggml-org llama.cpp Improper Input Validation
NVD
Vulnerability 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.
CVSS v4.0 Base Metrics — Score 6.9 (MEDIUM)
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:PAttack VectorNetwork
Attack ComplexityLow
Attack RequirementsNone
Privileges RequiredNone
User InteractionNone
Confidentiality (Vulnerable System)None
Integrity (Vulnerable System)None
Availability (Vulnerable System)Low
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Show CVSS v3.x metrics (score 5.3)
CVSS v3.1 Base Metrics — Score 5.3 (MEDIUM)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:CAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityLow
Affected & Patched Versions
- ggml-org llama.cpp 0.7.0-dev
No patched version published yet
Until a fix ships, reduce exposure:
- Restrict access to the affected service or interface to trusted networks.
- Disable the affected feature if you do not need it.
- Watch the vendor advisory for a firmware or software update.
What to do
Prioritize this fix. Exploit code is public, so attacks can follow quickly.
- Check whether you run ggml-org llama.cpp and which version.
- No patched version is listed yet. Limit access to the affected service to trusted networks, and disable the feature if you can.
- Subscribe to the vendor advisory so you learn when a fix ships.
- Review logs and exposed services for signs of earlier compromise.
Timeline
- Nov 21, 2026Published
- Nov 21, 2026Record last modified
- Nov 22, 2026PoC status changed: POC to UNKNOWN
- Nov 22, 2026CVSS score changed: 6.9 to 5.5
- Nov 22, 2026PoC status changed: POC to UNKNOWN
- Nov 22, 2026CVSS score changed: 6.9 to 5.5
- Nov 22, 2026PoC status changed: POC to UNKNOWN
- Nov 22, 2026CVSS score changed: 6.9 to 5.5
- Nov 22, 2026PoC status changed: POC to UNKNOWN
- Nov 22, 2026CVSS score changed: 6.9 to 5.5
- Nov 22, 2026PoC status changed: POC to UNKNOWN
- Nov 22, 2026CVSS score changed: 6.9 to 5.5
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new ggml-org llama.cpp CVEsYou are reading CVE-2026-134540. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsMore ggml-org llama.cpp CVEs
External References
- Advisoryhttps://vuldb.com/vuln/441681
- Advisoryhttps://vuldb.com/vuln/441681/cti
- Advisoryhttps://vuldb.com/cve/CVE-2026-134540
- Advisoryhttps://vuldb.com/submit/1052496
- Issue Trackinghttps://github.com/ggml-org/llama.cpp/issues/30835
- Patchhttps://github.com/ggml-org/llama.cpp/pull/31478
- Exploithttps://gist.github.com/Yunzez/90b17f91d7f1955805e0045a1a76fb6d#file-repro_llamacpp_grammar_triggers_abort-py
- Patchhttps://github.com/ggml-org/llama.cpp/commit/9f26fe11c73c7e74a5e99e7f1b6370ad8e1cb22d
- Patchhttps://github.com/ggml-org/llama.cpp/releases/tag/b12405
- Referencehttps://github.com/ggml-org/llama.cpp/
Data last checked: Nov 22, 2026 15:22 UTC