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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-125"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71439.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "b5649"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "c33fe8b8c4427202706b1434e9fc8ab5752c9cac"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "b5649",
"range": [
{
"fixed": "c33fe8b8c4427202706b1434e9fc8ab5752c9cac"
}
],
"source": "REFERENCES_TAG"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-71439.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"164578225629833693364564844201490206200",
"200583789337199234419560189155969555012",
"252284403718650713945867811804002762600",
"26107596677888683207003620874459861255",
"333730869571398948145497010955539292735",
"328975681548924628681583336138979869467",
"273057827202124653255102954964151397424",
"100963457126376751774079245162441567982",
"206503586942894332846384183504254811966",
"191456194931924100854534319190906911002",
"131058290431587671667403386051328373287",
"216067088659200337063470062682477676671",
"131145238526302391433725343245352666319",
"244938860039815962710674991991896438788",
"273883221859932616387821050377508845142",
"211455905499150290248493547180525202841",
"262575937722047646224153083298428249945",
"195310819689428065850683221436130121930",
"309340848325163942737991157445901656376",
"327718166591003326195623731789657644791"
],
"threshold": 0.9
},
"id": "CVE-2025-71439-278a4228",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/c33fe8b8c4427202706b1434e9fc8ab5752c9cac",
"target": {
"file": "src/llama-vocab.cpp"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "270621100992159088859996115037089240707",
"length": 3234
},
"id": "CVE-2025-71439-678903c3",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/c33fe8b8c4427202706b1434e9fc8ab5752c9cac",
"target": {
"file": "src/llama-vocab.cpp",
"function": "llama_vocab::impl::print_info"
}
}
]
"2026-11-11T13:20:03Z"