CVE Catalog

CVE-2024-58400

HighCVSS 8.2
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.42%

36th percentile - higher than 36% of all known CVEs

Summary

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.

Risk Assessment

A remote unauthenticated attacker may read process memory contents or cause a crash, potentially leading to information disclosure or service disruption.

Recommendation

Update llama.cpp to version b3701 or later and restrict access to the llama-server /completion endpoint.

Other vulnerabilities in llama.cpp

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS