Skip to main content
← All vulnerabilities
CVE-2024-58399EUVD-2024-55826GHSA-XF8W-PFXH-7XJ3

llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in b2731
None on Exploit-DB, Metasploit or GitHub

Summary

llama.cpp, an open-source library for running large language models locally, is affected by this flaw when it loads a specially crafted or truncated GGUF model file. An attacker who supplies such a file can cause the program to crash or read memory outside the model file into the model's weights.

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

Read the original description

llama.cpp before b2731 contains an out-of-bounds read vulnerability in llama_model_loader that allows attackers to read memory outside the mapped model file via crafted GGUF tensor offsets. Attackers can supply a crafted or truncated GGUF model file with arbitrary 64-bit tensor offsets to crash the process or load adjacent process memory as model weights.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • ggml-org llama.cpp

    From b1046 · fixed in b2731

References 6

GitHub · ggml-org/llama.cpp

vulncheck.com