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 unvalid…
- CVSS
- 8.2High
- Chance of exploitation (EPSS)
- 0.77%
- Published
- Oct 27, 2026
- In the news
- Not yet
What to do
A serious security flaw that can be attacked over the network without logging in. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Fixed in: b3701
Affected versions
- Ggml-org Llama.cpp
- Before b3701
Description
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 products
Get alerts for these →No product list yet. It usually appears within a few days of publication.
Timeline 2
Latest change: Nessus plugin 372665: Linux Distros Unpatched Vulnerability : CVE-2024-58400 (Oct 27, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Wed, Oct 28, 2026
Tue, Oct 27, 2026
- CVECVE-2024-58400 published (CVSS 8.2)CVE Program · 01:19 UTC
References 6
- github.com /ggml-org/llama.cpp/blob/b3681/examples/server/server.cpp#L789
- github.com /ggml-org/llama.cpp/commit/eae597182cb61bbde0b26e7cec5999d28b9327fe
- github.com /ggml-org/llama.cpp/commit/faf69d4237c9ae4d7f572b4674d1002463e8acd3
- github.com /ggml-org/llama.cpp/pull/9359
- github.com /ggml-org/llama.cpp/releases/tag/b3701
- www.vulncheck.com /advisories/llama-cpp-before-b3701-out-of-bounds-read-in-llama-decode-via-token-ids