CVE-2024-58400

published 27 Oct 2026 · updated 27 Oct 2026

llama.cpp before b3701 Out-of-Bounds Read in llama_decode via Token IDs

8.2HighCVSS 8.2EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in b3701.

llama.cpp before b3701 contains an out-of-bounds read vulnerability in llama_decode_internal and llama_encode_internal that allows remote unauthenticated attackers to read memory by supplying unvalidated token IDs. Attackers can send integer-array prompts to the llama-server /completion endpoint with IDs outside 0 to n_vocab to read embedding memory out of bounds or crash the process.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
ggml-org<b3701b3701

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-58400 severity on Zeptric[![CVE-2024-58400](https://zeptric.io/badge/cve/CVE-2024-58400.svg)](https://zeptric.io/cve/CVE-2024-58400)