{"id":"CVE-2024-58399","state":"PUBLISHED","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.","publishedAt":"2026-10-27T00:33:56.695Z","updatedAt":"2026-10-27T00:33:56.695Z","severity":{"score":6.9,"label":"Medium","version":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["ggml-org llama.cpp"],"affected":[{"vendor":"ggml-org","product":"llama.cpp","packageURL":"pkg:github/ggml-org/llama.cpp","defaultStatus":"unaffected","versions":[{"version":"b1046","status":"affected","lessThan":"b2731","versionType":"custom"}]}],"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"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/58xxx/CVE-2024-58399.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-58399","state":"PUBLISHED","datePublished":"2026-10-27T00:33:56.695Z","dateUpdated":"2026-10-27T00:33:56.695Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-10-27T00:10:21.023Z"},"containers":{"cna":{"title":"llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets","descriptions":[{"lang":"en","value":"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":[{"vendor":"ggml-org","product":"llama.cpp","packageURL":"pkg:github/ggml-org/llama.cpp","defaultStatus":"unaffected","versions":[{"version":"b1046","status":"affected","lessThan":"b2731","versionType":"custom"}]}],"references":[{"url":"https://github.com/ggml-org/llama.cpp/issues/6774","tags":["issue-tracking"]},{"url":"https://github.com/ggml-org/llama.cpp/pull/6885","tags":["patch","issue-tracking"]},{"url":"https://github.com/ggml-org/llama.cpp/commit/0ead1f1072fdc70720f92e008a294dc74a826b1d","tags":["patch"]},{"url":"https://github.com/ggml-org/llama.cpp/blob/b2730/llama.cpp#L3002-L3004","tags":["technical-description"]},{"url":"https://github.com/ggml-org/llama.cpp/releases/tag/b2731","tags":["release-notes"],"name":"llama.cpp b2731 Release Notes"},{"url":"https://www.vulncheck.com/advisories/llama-cpp-before-b2731-out-of-bounds-read-via-gguf-tensor-offsets","name":"VulnCheck Advisory: llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.9,"baseSeverity":"MEDIUM"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":6.1,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","lang":"en","description":"Out-of-bounds Read","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-27T00:33:56.695Z"},"datePublic":"2024-04-19T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*","versionStartIncluding":"b1046","versionEndExcluding":"b2731"}]}]}],"credits":[{"lang":"en","value":"slaren","type":"finder"},{"lang":"en","value":"Jeongwoo Lee","type":"reporter"},{"lang":"en","value":"slaren","type":"remediation developer"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}