HIGH🇵🇱 Wersja polska

CVE-2026-21869

CVSS 8.8v3.1pub. 2026-01-08upd. 2026-02-02

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 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Ggml Llama.cpp

    APP
    Ggml
    all versions
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
RCEMemory
CWE
References

Related vulnerabilities

CVE-2026-34159CRITICAL9.8PL ✓same product

RCE w llama.cpp — brak walidacji granic w RPC backend (deserialization)

CVE-2024-42479CRITICAL10.0PL ✓same product

Zapis pod dowolny adres pamięci w llama.cpp poprzez wskaźnik rpc_tensor

CVE-2026-33298HIGH7.8same product

llama.cpp is an inference of several LLM models in C/C++. Prior to b7824, an integer overflow vulnerability in...

CVE-2026-27940HIGH7.8same product

llama.cpp is an inference of several LLM models in C/C++. Prior to b8146, the gguf_init_from_file_impl() in gg...

CVE-2025-52566HIGH8.6same product

llama.cpp is an inference of several LLM models in C/C++. Prior to version b5721, there is a signed vs. unsign...