{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-58400","id":"CVE-2024-58400","title":"llama.cpp memory exposure via token IDs in server completion requests","description":"llama.cpp before b3701 contains an out-of-bounds read vulnerability in llama_decode_internal and llama_encode_internal that allows remote unauthenticated attackers to read memory by supplying unvalidated token IDs. Attackers can send integer-array prompts to the llama-server /completion endpoint with IDs outside 0 to n_vocab to read embedding memory out of bounds or crash the process.","descriptionLong":"llama.cpp before b3701 contains an out-of-bounds read vulnerability in llama_decode_internal and llama_encode_internal that allows remote unauthenticated attackers to read memory by supplying unvalidated token IDs. Attackers can send integer-array prompts to the llama-server /completion endpoint with IDs outside 0 to n_vocab to read embedding memory out of bounds or crash the process.","published":"2026-10-27T00:33:57.354Z","updated":"2026-10-29T07:31:31.745542083Z","reserved":"2026-10-27T00:10:21.403Z","status":"Awaiting Analysis","rejected":false,"assigner":"VulnCheck","metric":{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"high","source":"VulnCheck"},"metrics":[{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"high","source":"VulnCheck"},{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"vulncheck.com"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"unrated","source":"OSV"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","rating":"high","source":"VulnCheck"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","rating":"high","source":"vulncheck.com"}],"rating":"high","products":["ggml-org llama.cpp"],"affectedProducts":[{"vendor":"ggml-org","product":"llama.cpp","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","versionType":"custom","lessThan":"b3701"}],"platforms":[]}],"packages":[],"cwes":["CWE-129"],"aliases":[],"references":[{"url":"https://github.com/ggml-org/llama.cpp/pull/9359","tags":["patch","issue-tracking","fix"]},{"url":"https://github.com/ggml-org/llama.cpp/commit/faf69d4237c9ae4d7f572b4674d1002463e8acd3","tags":["patch","fix"]},{"url":"https://github.com/ggml-org/llama.cpp/commit/eae597182cb61bbde0b26e7cec5999d28b9327fe","tags":["patch","fix"]},{"url":"https://github.com/ggml-org/llama.cpp/blob/b3681/examples/server/server.cpp#L789","tags":["technical-description","article"]},{"url":"https://github.com/ggml-org/llama.cpp/releases/tag/b3701","tags":["release-notes","advisory"]},{"url":"https://www.vulncheck.com/advisories/llama-cpp-before-b3701-out-of-bounds-read-in-llama-decode-via-token-ids","tags":["third-party-advisory","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58400.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58400","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00422,"epssPercentile":0.37233,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-58400","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58400","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-58400","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-58400","ok":true,"note":"scored 2026-11-19"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}