Skip to content
HighVulnerabilityLLM-specific

CVE-2024-58400: llama.cpp out-of-bounds read in llama_decode_internal via /completion endpoint

Identifier
CVE-2024-58400
Published
Record updated
View JSON

Summary

llama.cpp before b3701 contains an out-of-bounds read in llama_decode_internal and llama_encode_internal. Remote unauthenticated attackers can supply unvalidated token IDs in integer-array prompts sent to the llama-server /completion endpoint, using IDs outside 0 to n_vocab.

Mitigation

Fixed in b3701 (upgrade to llama.cpp b3701 or later).