CVE-2026-21869: llama.cpp has Out-of-bounds Write in llama-server
Vulnerability summary
CVE-2026-21869 is a critical (CVSS 9.8) Out-of-bounds Write vulnerability in ggml-org llama.cpp. EPSS estimates a 0.53% chance of exploitation in the next 30 days, higher than 45.6% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Timeline
- 07-01-2026PublishedVulnerability first disclosed.
- 08-01-2026Last modifiedVulnerability information updated.
Description
llama.cpp is an inference of several LLM models in C/C++. In commits 55d4206c8 and prior, the n_discard parameter is parsed directly from JSON input in the llama.cpp server's completion endpoints without validation to ensure it's non-negative. When a negative value is supplied and the context fills up, llama_memory_seq_rm/add receives a reversed range and negative offset, causing out-of-bounds memory writes in the token evaluation loop. This deterministic memory corruption can crash the process or enable remote code execution (RCE). There is no fix at the time of publication.
CVSS metrics
4 scores · 4 sources · 1 version- CVE.orgCNA8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.53%
Chance of exploitation in the next 30 days
Percentile
46%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.53% on 21-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundLlama.Cpp
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- llama.cpp< 7593+dfsg-1
Ggml1 product
Ggml-org1 product
- llama.cpp≤ 55d4206c8
Opensuse1 product
- llamacpp&distro=openSUSE Tumbleweed< 9500-1.1
Ubuntu1 product
- llama.cppAll versions (No fix recorded)
5 vendors · 5 products
References
5 links- github.com/ggml-org/llama.cpp/security/advisories/GHSA-8947-pfff-2f3cX Refsource CONFIRMREPORTExploitVendor Advisory