Skip to main content
← All vulnerabilities
CVE-2024-58400EUVD-2024-55827GHSA-7WFJ-Q343-9M2R

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in b3701
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

The affected software is llama.cpp, an open-source library for running large language models, including its llama-server component. An unauthenticated remote attacker can exploit this flaw by sending specially crafted token IDs to the server, which can leak memory contents or crash the process.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  4. Record last updated

Affected versions

  • ggml-org llama.cpp

    fixed in b3701

References 6

GitHub · ggml-org/llama.cpp

vulncheck.com