Skip to content
CVE PROGRAM SOURCE RECORD6.9 Medium

CVE-2024-58399

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

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

ggml-org llama.cpp

Default version status: unaffected

  • b1046 to < b2731affected
pkg:github/ggml-org/llama.cpp

References