{"id":"CVE-2024-58399","revision":"fd9b5dad23be460284f833c99bb65b83","records":[{"revision":"fd9b5dad23be460284f833c99bb65b83","observedAt":"2026-10-27T02:31:55.176+00:00","statement":{"source":"cve-program","id":"CVE-2024-58399","aliases":[],"title":"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.","state":0,"publishedAt":"2026-10-27T00:33:56.695+00:00","modifiedAt":"2026-10-27T00:33:56.695+00:00","affected":[{"ecosystem":"Vendor product","name":"llama.cpp","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"ggml-org\",\n                    \"product\": \"llama.cpp\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:github/ggml-org/llama.cpp\",\n                    \"versions\": [\n                        {\n                            \"version\": \"b1046\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"custom\",\n                            \"lessThan\": \"b2731\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N","score":6.9,"severity":"MEDIUM"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H","score":6.1,"severity":"MEDIUM"}],"references":["https://github.com/ggml-org/llama.cpp/issues/6774","https://github.com/ggml-org/llama.cpp/pull/6885","https://github.com/ggml-org/llama.cpp/commit/0ead1f1072fdc70720f92e008a294dc74a826b1d","https://github.com/ggml-org/llama.cpp/blob/b2730/llama.cpp#L3002-L3004","https://github.com/ggml-org/llama.cpp/releases/tag/b2731","https://www.vulncheck.com/advisories/llama-cpp-before-b2731-out-of-bounds-read-via-gguf-tensor-offsets"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-58399","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-58399","identifiers":["CVE-2024-58399"]},"retained":false,"historicalAffected":[]}],"coverage":[]}