{"id":"CVE-2025-71439","revision":"2eed19236b154df19513198da2098279","records":[{"revision":"2eed19236b154df19513198da2098279","observedAt":"2026-10-27T02:31:55.176+00:00","statement":{"source":"cve-program","id":"CVE-2025-71439","aliases":[],"title":"llama.cpp before b5649 Heap Out-of-Bounds Read via llama_vocab::impl::print_info","description":"llama.cpp before b5649 contains a heap out-of-bounds read vulnerability in llama_vocab::impl::print_info() that allows attackers to crash model loading via oversized special token IDs. Attackers can supply a crafted GGUF model with a short tokenizer.ggml.tokens array, causing llama-cli or llama-server to read past id_to_token and crash.","state":0,"publishedAt":"2026-10-27T00:33:57.956+00:00","modifiedAt":"2026-10-27T00:33:57.956+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\": \"b5649\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":6.8,"severity":"MEDIUM"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"severity":"MEDIUM"}],"references":["https://github.com/ggml-org/llama.cpp/security/advisories/GHSA-g4cc-763q-h9h6","https://github.com/ggml-org/llama.cpp/pull/14145","https://github.com/ggml-org/llama.cpp/commit/c33fe8b8c4427202706b1434e9fc8ab5752c9cac","https://github.com/ggml-org/llama.cpp/blob/b5648/src/llama-vocab.cpp#L2771","https://github.com/ggml-org/llama.cpp/releases/tag/b5649","https://www.vulncheck.com/advisories/llama-cpp-before-b5649-heap-out-of-bounds-read-via-llama-vocab-impl-print-info"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-71439","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-71439","identifiers":["CVE-2025-71439"]},"retained":false,"historicalAffected":[]}],"coverage":[]}