CVE-2024-58399
mediumllama.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 vi…
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.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H Affected products
Not reported by the source (unknown — not "none").
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
No vendor advisory or patch reference tagged by NVD. Check the references below.
References
- https://github.com/ggml-org/llama.cpp/blob/b2730/llama.cpp#L3002-L3004 disclosure@vulncheck.com
- https://github.com/ggml-org/llama.cpp/commit/0ead1f1072fdc70720f92e008a294dc74a826b1d disclosure@vulncheck.com
- https://github.com/ggml-org/llama.cpp/issues/6774 disclosure@vulncheck.com
- https://github.com/ggml-org/llama.cpp/pull/6885 disclosure@vulncheck.com
- https://github.com/ggml-org/llama.cpp/releases/tag/b2731 disclosure@vulncheck.com
- https://www.vulncheck.com/advisories/llama-cpp-before-b2731-out-of-bounds-read-via-gguf-te... disclosure@vulncheck.com
