{"id":"UBUNTU-CVE-2025-71439","details":"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.","modified":"2026-10-28T20:16:32.703324441Z","published":"2026-10-27T01:19:00Z","upstream":["CVE-2025-71439"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-71439"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-71439"},{"type":"REPORT","url":"https://github.com/cveproject/cvelistv5/tree/main/cves/2025/71xxx/cve-2025-71439.json"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/blob/b5648/src/llama-vocab.cpp#l2771"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/commit/c33fe8b8c4427202706b1434e9fc8ab5752c9cac"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/pull/14145"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/releases/tag/b5649"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/security/advisories/ghsa-g4cc-763q-h9h6"},{"type":"REPORT","url":"https://nvd.nist.gov/vuln/detail/cve-2025-71439"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/llama-cpp-before-b5649-heap-out-of-bounds-read-via-llama-vocab-impl-print-info"}],"affected":[{"package":{"name":"llama.cpp","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/llama.cpp?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8681+dfsg-1","9721+dfsg-1ubuntu1","10438+dfsg-1","10438+dfsg-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"libllama0","binary_version":"10438+dfsg-1ubuntu1"},{"binary_name":"llama.cpp","binary_version":"10438+dfsg-1ubuntu1"},{"binary_name":"llama.cpp-examples","binary_version":"10438+dfsg-1ubuntu1"},{"binary_name":"llama.cpp-services","binary_version":"10438+dfsg-1ubuntu1"},{"binary_name":"llama.cpp-tests","binary_version":"10438+dfsg-1ubuntu1"},{"binary_version":"10438+dfsg-1ubuntu1","binary_name":"llama.cpp-tools"},{"binary_name":"llama.cpp-tools-extra","binary_version":"10438+dfsg-1ubuntu1"},{"binary_version":"10438+dfsg-1ubuntu1","binary_name":"python3-gguf"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-71439.json"}},{"package":{"name":"llama.cpp","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/llama.cpp?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5882+dfsg-2","8064+dfsg-1ubuntu1","8681+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"8681+dfsg-1","binary_name":"libllama0"},{"binary_name":"llama.cpp","binary_version":"8681+dfsg-1"},{"binary_version":"8681+dfsg-1","binary_name":"llama.cpp-examples"},{"binary_version":"8681+dfsg-1","binary_name":"llama.cpp-tests"},{"binary_version":"8681+dfsg-1","binary_name":"llama.cpp-tools"},{"binary_version":"8681+dfsg-1","binary_name":"llama.cpp-tools-extra"},{"binary_version":"8681+dfsg-1","binary_name":"python3-gguf"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-71439.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"CVSS_V4","score":"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"},{"type":"CVSS_V4","score":"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"},{"type":"Ubuntu","score":"medium"}]}