llama.cpp before b2731 contains an out-of-bounds read vulnerability in llama_model_loader that allows attackers to read memory outside the mapped model file via crafted GGUF tensor offsets. Attackers can supply a crafted or truncated GGUF model file with arbitrary 64-bit tensor offsets to crash the process or load adjacent process memory as model weights.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-125"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58399.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "b1046"
},
{
"fixed": "b2731"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "0ead1f1072fdc70720f92e008a294dc74a826b1d"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "b2731",
"range": [
{
"fixed": "0ead1f1072fdc70720f92e008a294dc74a826b1d"
}
],
"source": "REFERENCES_TAG"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-58399.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"91632949561657667511872088537934367622",
"182941382311164531013244665836278199061",
"267509021873368201969402681813402480510",
"47817601274248388747114710904232718674",
"125744839488091481660148110391485141461",
"218123491694160943122904983432087008613",
"63958740836120751375210824858940626262",
"140466585422054711251362075430312504642",
"68878006396067724344671231349256520050",
"30022319390809484472232066176170272797",
"11381685657690834858136732308699006911",
"8040651235026344893736737224755713609",
"85961583921663635110424875276229505119",
"6094609831660486283612709810367288039",
"12881981482884316114796199802079454916",
"186661085181894008670866176687297111941",
"224474272850880604268781663591215143804",
"75594346743395530883419923504876447309",
"191950127737358933686435027794434592374",
"212972291169220457967143689203419979012",
"260532599369419753524502101779763160295",
"194442150778549146008067781636465488050"
],
"threshold": 0.9
},
"id": "CVE-2024-58399-d2c095e8",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/0ead1f1072fdc70720f92e008a294dc74a826b1d",
"target": {
"file": "llama.cpp"
}
}
]
"2026-11-04T07:07:59Z"