{"id":"CVE-2025-71439","state":"PUBLISHED","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.","publishedAt":"2026-10-27T00:33:57.956Z","updatedAt":"2026-10-27T00:33:57.956Z","severity":{"score":6.8,"label":"Medium","version":"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","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":"0","status":"affected","lessThan":"b5649","versionType":"custom"}]}],"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"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:10:04.440Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/71xxx/CVE-2025-71439.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-71439","state":"PUBLISHED","datePublished":"2026-10-27T00:33:57.956Z","dateUpdated":"2026-10-27T00:33:57.956Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-10-27T00:10:21.736Z"},"containers":{"cna":{"title":"llama.cpp before b5649 Heap Out-of-Bounds Read via llama_vocab::impl::print_info","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"ggml-org","product":"llama.cpp","packageURL":"pkg:github/ggml-org/llama.cpp","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"b5649","versionType":"custom"}]}],"references":[{"url":"https://github.com/ggml-org/llama.cpp/security/advisories/GHSA-g4cc-763q-h9h6","tags":["vendor-advisory"],"name":"GitHub Security Advisory (GHSA-g4cc-763q-h9h6)"},{"url":"https://github.com/ggml-org/llama.cpp/pull/14145","tags":["patch","issue-tracking"]},{"url":"https://github.com/ggml-org/llama.cpp/commit/c33fe8b8c4427202706b1434e9fc8ab5752c9cac","tags":["patch"]},{"url":"https://github.com/ggml-org/llama.cpp/blob/b5648/src/llama-vocab.cpp#L2771","tags":["technical-description"]},{"url":"https://github.com/ggml-org/llama.cpp/releases/tag/b5649","tags":["release-notes"],"name":"llama.cpp b5649 Release Notes"},{"url":"https://www.vulncheck.com/advisories/llama-cpp-before-b5649-heap-out-of-bounds-read-via-llama-vocab-impl-print-info","name":"VulnCheck Advisory: llama.cpp before b5649 Heap Out-of-Bounds Read via llama_vocab::impl::print_info","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:N/VI:N/VA:H/SC:N/SI:N/SA:N","attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.8,"baseSeverity":"MEDIUM"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.5,"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:57.956Z"},"datePublic":"2025-06-13T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*","versionEndExcluding":"b5649"}]}]}],"credits":[{"lang":"en","value":"Miaoqian Lin (Yuuoniy)","type":"finder"},{"lang":"en","value":"Jeongwoo Lee","type":"reporter"},{"lang":"en","value":"ggerganov","type":"remediation developer"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}