CVE-2024-58399
llama.cpp before b2731 contains an out-of-bounds read vulnerability …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/ggml-org/llama.cpp/blob/b2730/llama.cpp#L3002-L3004
- github.com/ggml-org/llama.cpp/commit/0ead1f1072fdc70720f92e008a294dc74a826b1d
- github.com/ggml-org/llama.cpp/issues/6774
- github.com/ggml-org/llama.cpp/pull/6885
- github.com/ggml-org/llama.cpp/releases/tag/b2731
- www.vulncheck.com/advisories/llama-cpp-before-b2731-out-of-bounds-read-via-gguf-tensor-off
- nvd.nist.gov/vuln/detail/CVE-2024-58399
- cve.org/CVERecord?id=CVE-2024-58399
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.