{"schema":"threatline.record/2","record":{"id":"CVE-2024-58400","aliases":[],"summary":"llama.cpp before b3701 Out-of-Bounds Read in llama_decode via Token IDs","details":"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.","categories":["Unclassified"],"product":"llama.cpp","vendor":"ggml-org","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2024-58400","source_modified_at":"2026-10-27T00:33:57.354Z","fetched_at":"2026-10-27T04:51:10.072820Z","product":"llama.cpp","vendor":"ggml-org","versions":[{"version":"0","status":"affected","versionType":"custom","lessThan":"b3701"}],"defaultStatus":"unaffected"}],"fixed_versions":[],"cvss":8.8,"severity":"High","kev":{"listed":false},"epss":{"probability":null,"percentile":null,"score_date":null},"published_at":"2026-10-27T00:33:57.354Z","modified_at":"2026-10-27T00:33:57.354Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-58400","fetched_at":"2026-10-27T04:51:10.072820Z","source_modified_at":"2026-10-27T00:33:57.354Z"}],"sources":["CVE List"],"references":[{"source":"CVE List","url":"https://github.com/ggml-org/llama.cpp/pull/9359","tags":["patch","issue-tracking"]},{"source":"CVE List","url":"https://github.com/ggml-org/llama.cpp/commit/faf69d4237c9ae4d7f572b4674d1002463e8acd3","tags":["patch"]},{"source":"CVE List","url":"https://github.com/ggml-org/llama.cpp/commit/eae597182cb61bbde0b26e7cec5999d28b9327fe","tags":["patch"]},{"source":"CVE List","url":"https://github.com/ggml-org/llama.cpp/blob/b3681/examples/server/server.cpp#L789","tags":["technical-description"]},{"source":"CVE List","url":"https://github.com/ggml-org/llama.cpp/releases/tag/b3701","tags":["release-notes"]},{"source":"CVE List","url":"https://www.vulncheck.com/advisories/llama-cpp-before-b3701-out-of-bounds-read-in-llama-decode-via-token-ids","tags":["third-party-advisory"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CVE List","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":null,"confidence":"unknown","reviewed":false},"change_timestamp":"2026-10-27T00:33:57.354Z","content_hash":"c007be75296167dd20282aff93538234d85a359095c37937b580cc0b01139abc"}}
