9.8

CVE-2026-21869: llama.cpp has Out-of-bounds Write in llama-server

Analyzed
AliasesUBUNTU-CVE-2026-21869DEBIAN-CVE-2026-21869openSUSE-SU-2026:10961-1
Published 07-01-2026Last modified 08-01-2026

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.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
0.53%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Timeline

  1. 07-01-2026
    PublishedVulnerability first disclosed.
  2. 08-01-2026
    Last 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

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

21-10-202620-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Llama.Cpp

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

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
Opensuse1 product
  • llamacpp&distro=openSUSE Tumbleweed< 9500-1.1
Ubuntu1 product
  • llama.cppAll versions (No fix recorded)

5 vendors · 5 products

References

5 links