{"id":"CVE-2024-58400","revision":null,"records":[{"revision":"485b35b6818b4aeeab937af34fb30bb2","observedAt":"2026-10-27T15:44:06.157+00:00","statement":{"source":"cve-program","id":"CVE-2024-58400","aliases":[],"title":"llama.cpp before b3701 Out-of-Bounds Read in llama_decode via Token IDs","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.","state":0,"publishedAt":"2026-10-27T00:33:57.354+00:00","modifiedAt":"2026-10-27T14:14:21.519+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\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"custom\",\n                            \"lessThan\": \"b3701\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","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","score":8.8,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","score":8.2,"severity":"HIGH"}],"references":["https://github.com/ggml-org/llama.cpp/pull/9359","https://github.com/ggml-org/llama.cpp/commit/faf69d4237c9ae4d7f572b4674d1002463e8acd3","https://github.com/ggml-org/llama.cpp/commit/eae597182cb61bbde0b26e7cec5999d28b9327fe","https://github.com/ggml-org/llama.cpp/blob/b3681/examples/server/server.cpp#L789","https://github.com/ggml-org/llama.cpp/releases/tag/b3701","https://www.vulncheck.com/advisories/llama-cpp-before-b3701-out-of-bounds-read-in-llama-decode-via-token-ids"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-58400","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-58400","identifiers":["CVE-2024-58400"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-10-30T15:47:49.0266630+00:00","complete":true,"records":1764,"lastAttemptAt":"2026-10-30T15:47:49.026663+00:00","lastSuccessAt":"2026-10-30T15:47:49.1810146+00:00","error":null,"lastVerifiedAt":"2026-10-30T15:47:49.1810155+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-7e2c4e7288f2c464ad8c61f3bb6017374714faedcc781283ac06a706ee1a820b-d7b222ecfb3b37ed75e1512e40fdcf28594abff2a8568f1274ffe87891d61caa","complete":true,"records":417228,"lastAttemptAt":"2026-10-30T16:45:32.5536592+00:00","lastSuccessAt":"2026-10-30T16:45:32.4100997+00:00","error":null,"lastVerifiedAt":"2026-10-30T16:45:32.5536592+00:00","snapshotPublishedAt":"2026-10-30T16:25:31+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-ff08bc3cb507480a8f6778ea929d888d","complete":false,"records":13526,"lastAttemptAt":"2026-10-30T16:00:14.0739122+00:00","lastSuccessAt":"2026-10-30T16:00:14.07+00:00","error":"74 identifier lookups failed; latest failures include HTTP 403. Other identifiers were checked independently.","lastVerifiedAt":"2026-10-30T16:00:14.07+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":12091,"expectedIdentifiers":13604,"failedIdentifiers":74},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-10-30T15:47:49.0266630+00:00","complete":true,"records":1094,"lastAttemptAt":"2026-10-30T15:47:49.026663+00:00","lastSuccessAt":"2026-10-30T15:47:49.1818062+00:00","error":null,"lastVerifiedAt":"2026-10-30T15:47:49.1818068+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-ab12a0d4513f4be7a9c58cd604c95108","complete":false,"records":13544,"lastAttemptAt":"2026-10-30T15:48:14.4996449+00:00","lastSuccessAt":"2026-10-30T15:48:14.494+00:00","error":null,"lastVerifiedAt":"2026-10-30T15:48:14.494+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13603,"expectedIdentifiers":13604,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-e091d9104aae1991994c868b5fad0248c9b288abafb7672fca8ae6500f97e080","complete":true,"records":9808,"lastAttemptAt":"2026-10-30T15:47:48.8610364+00:00","lastSuccessAt":"2026-10-30T15:47:48.5635219+00:00","error":null,"lastVerifiedAt":"2026-10-30T15:47:48.8610364+00:00","snapshotPublishedAt":"2026-10-30T15:23:39+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-2de9ccc5290f060c7aa63f89c25dd76f655a64ba1aba7c05c97fa3bee4f09899","complete":true,"records":1967,"lastAttemptAt":"2026-10-30T16:45:32.7049631+00:00","lastSuccessAt":"2026-10-28T20:55:34.2982937+00:00","error":null,"lastVerifiedAt":"2026-10-30T16:45:32.7049631+00:00","snapshotPublishedAt":"2026-10-28T20:03:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-f63fa91e750071ae88c9f82019ecd6c982fa4fcc1d3dc5ceb5d9c642fb6bf05c","complete":true,"records":3023,"lastAttemptAt":"2026-10-30T15:47:48.9735652+00:00","lastSuccessAt":"2026-10-30T11:49:36.4759887+00:00","error":null,"lastVerifiedAt":"2026-10-30T15:47:48.9735652+00:00","snapshotPublishedAt":"2026-10-30T11:18:14+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-f835ee6763958dc737a96aa806bb1f739725810ceab9bd230dbd19be621e7aaf","complete":true,"records":230951,"lastAttemptAt":"2026-10-30T16:45:38.0171534+00:00","lastSuccessAt":"2026-10-30T15:47:38.7770997+00:00","error":null,"lastVerifiedAt":"2026-10-30T15:47:40.2387793+00:00","snapshotPublishedAt":"2026-10-30T15:23:44+00:00","importing":true,"stagedRecords":152500,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}