CVE-2026-21869

Source
https://cve.org/CVERecord?id=CVE-2026-21869
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-21869.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-21869
Aliases
  • GHSA-8947-pfff-2f3c
Downstream
Published
2026-01-07T23:37:59.886Z
Modified
2026-03-14T12:47:07.606484Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
llama.cpp has Out-of-bounds Write in llama-server
Details

llama.cpp is an inference of several LLM models in C/C++. In commits 55d4206c8 and prior, the ndiscard 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, llamamemoryseqrm/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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21869.json"
}
References

Affected packages

Git /

Affected ranges

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-21869.json"