{"id":"CVE-2024-58399","summary":"llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets","details":"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.","modified":"2026-11-04T07:07:59.634352450Z","published":"2026-10-27T00:33:56.695Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58399.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-125"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58399.json"},{"type":"ADVISORY","url":"https://github.com/ggml-org/llama.cpp/releases/tag/b2731"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58399"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/llama-cpp-before-b2731-out-of-bounds-read-via-gguf-tensor-offsets"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/issues/6774"},{"type":"FIX","url":"https://github.com/ggml-org/llama.cpp/commit/0ead1f1072fdc70720f92e008a294dc74a826b1d"},{"type":"FIX","url":"https://github.com/ggml-org/llama.cpp/pull/6885"},{"type":"ARTICLE","url":"https://github.com/ggml-org/llama.cpp/blob/b2730/llama.cpp#L3002-L3004"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ggml-org/llama.cpp","events":[{"introduced":"6e91a1b0706c2e0e52b9d9be7ee82d3c1e7a33c1"},{"fixed":"0ead1f1072fdc70720f92e008a294dc74a826b1d"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"b1046"},{"fixed":"b2731"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"0ead1f1072fdc70720f92e008a294dc74a826b1d"}]},{"source":"REFERENCES_TAG","original_tag":"b2731","range":[{"fixed":"0ead1f1072fdc70720f92e008a294dc74a826b1d"}]}]}}],"versions":["b2730","b2729","b2728","b2727","b2724","b2717","b2716","b2715","b2714","b2712","b2710","b2709","b2708","b2707","b2702","b2701","b2700","b2699","b2698","b2697","b2696","b2694","b2692","b2691","b2690","b2688","b2687","b2686","b2685","b2684","b2683","b2681","b2680","b2679","b2678","b2676","b2675","b2674","b2673","b2671","b2670","b2669","b2667","b2666","b2665","b2664","b2663","b2661","b2660","b2658","b2657","b2656","b2655","b2647","b2646","b2645","b2638","b2636","b2633","b2632","b2630","b2629","b2620","b2619","b2615","b2613","b2612","b2611","b2568","b2608","b2590","b2589","b2586","b2585","b2582","b2581","b2579","b2578","b2576","b2573","b2570","b2567","b2566","b2563","b2554","b2551","b2548","b2543","b2542","b2541","b2540","b2538","b2536","b2534","b2531","b2529","b2528","b2527","b2526","b2523","b2521","b2520","b2518","b2517","b2516","b2514","b2510","b2509","b2508","b2503","b2494","b2502","b2501","b2499","b2497","b2496","b2495","b2493","b2491","b2489","b2487","b2481","b2480","b2479","b2478","b2476","b2475","b2474","b2471","b2468","b2466","b2465","b2463","b2462","b2461","b2460","b2459","b2458","b2457","b2456","b2455","b2454","b2453","b2450","b2449","b2448","b2447","b2444","b2440","b2439","b2438","b2437","b2436","b2435","b2434","b2433","b2432","b2431","b2430","b2428","b2427","b2424","b2423","b2422","b2420","b2419","b2418","b2417","b2416","b2414","b2413","b2412","b2411","b2410","b2409","b2408","b2407","b2406","b2405","b2404","b2403","b2402","b2400","b2395","b2399","b2398","b2397","b2396","b2394","b2393","b2392","b2391","b2389","b2387","b2386","b2385","b2384","b2382","b2381","b2380","b2378","b2377","b2376","b2374","b2372","b2371","b2370","b2369","b2368","b2367","b2366","b2365","b2364","b2363","b2362","b2361","b2360","b2359","b2358","b2357","b2356","b2355","b2354","b2352","b2350","b2346","b2345","b2343","b2334","b2333","b2331","b2330","b2329","b2327","b2325","b2324","b2323","b2321","b2320","b2319","b2318","b2316","b2314","b2313","b2312","b2311","b2309","b2308","b2306","b2305","b2304","b2303","b2302","b2282","b2301","b2300","b2299","b2298","b2297","b2296","b2295","b2294","b2293","b2291","b2288","b2287","b2286","b2284","b2283","b2281","b2280","b2279","b2278","b2277","b2276","b2275","b2274","b2272","b2271","b2270","b2269","b2268","b2267","b2266","b2264","b2263","b2262","b2261","b2259","b2258","b2257","b2256","b2254","b2253","b2252","b2251","b2249","b2248","b2247","b2246","b2245","b2243","b2241","b2240","b2239","b2237","b2235","b2234","b2233","b2232","b2231","b2230","b2228","b2226","b2223","b2222","b2221","b2220","b2219","b2217","b2204","b2215","b2214","b2213","b2212","b2205","b2203","b2202","b2201","b2197","b2196","b2194","b2193","b2191","b2190","b2189","b2187","b2186","b2185","b2184","b2182","b2181","b2180","b2179","b2178","b2177","b2176","b2175","b2174","b2172","b2168","b2167","b2144","b2143","b2142","b2141","b2140","b2139","b2138","b2137","b2136","b2135","b2134","b2133","b2131","b2130","b2129","b2128","b2127","b2125","b2124","b2123","b2122","b2121","b2119","b2118","b2117","b2116","b2114","b2112","b2110","b2109","b2107","b2106","b2105","b2104","b2103","b2101","b2100","b2098","b2096","b2094","b2093","b2091","b2090","b2087","b2086","b2084","b2081","b2083","b2082","b2079","b2078","b2077","b2076","b2074","b2072","b2071","b2070","b2066","b2068","b2067","b2062","b2061","b2060","b2059","b2058","b2057","b2055","b2054","b2053","b2051","b2050","b2047","b2045","b2043","b2042","b2041","b2040","b2039","b2038","b2037","b2036","b2035","b2034","b2033","b2032","b2031","b2030","b2029","b2028","b2027","b2026","b2022","b2016","b2015","b2014","b2013","b2012","b2008","b2007","b2006","b2005","b2004","b2002","b2001","b2000","b1999","b1998","b1996","b1995","b1993","b1992","b1990","b1989","b1988","b1987","b1985","b1984","b1983","b1982","b1981","b1980","b1979","b1976","b1975","b1974","b1971","b1969","b1966","b1965","b1964","b1963","b1961","b1960","b1959","b1958","b1957","b1956","b1954","b1953","b1952","b1951","b1950","b1943","b1942","b1941","b1940","b1939","b1893","b1892","b1891","b1889","b1887","b1886","b1885","b1884","b1882","b1881","b1880","b1879","b1878","b1876","b1875","b1874","b1873","b1872","b1871","b1869","b1868","b1867","b1866","b1865","b1864","b1863","b1862","b1861","b1860","b1859","b1858","b1857","b1856","b1855","b1854","b1853","b1851","b1850","b1849","b1848","b1844","b1843","b1842","b1841","b1840","b1838","b1837","b1836","b1834","b1833","b1832","b1831","b1830","b1829","b1828","b1827","b1826","b1825","b1824","b1823","b1822","b1821","b1820","b1819","b1818","b1810","b1808","b1676","b1807","b1806","b1804","b1803","b1800","b1796","b1795","b1794","b1675","b1619","b1792","b1791","b1789","b1788","b1787","b1786","b1785","b1784","b1783","b1782","b1781","b1779","b1778","b1777","b1775","b1773","b1770","b1768","b1767","b1766","b1765","b1763","b1761","b1760","b1759","b1752","b1751","b1750","b1749","b1748","b1747","b1746","b1743","b1742","b1732","b1731","b1730","b1729","b1728","b1727","b1726","b1725","b1724","b1723","b1722","b1721","b1720","b1719","b1718","b1717","b1716","b1715","b1713","b1710","b1709","b1708","b1707","b1705","b1703","b1702","b1699","b1701","b1700","b1698","b1697","b1696","b1695","b1694","b1693","b1692","b1691","b1690","b1689","b1688","b1687","b1686","b1685","b1684","b1682","b1681","b1680","b1678","b1677","b1673","b1672","b1671","b1670","b1667","b1666","b1665","b1664","b1663","b1662","b1661","b1660","b1659","b1658","b1657","b1656","b1654","b1652","b1651","b1650","b1649","b1648","b1647","b1646","b1645","b1644","b1643","b1641","b1642","b1640","b1638","b1637","b1634","b1618","b1633","b1632","b1631","b1629","b1627","b1626","b1625","b1624","b1623","b1621","b1620","b1617","b1616","b1615","b1614","b1613","b1612","b1611","b1610","b1609","b1608","b1607","b1606","b1605","b1604","b1602","b1601","b1600","b1599","b1598","b1597","b1596","b1595","b1593","b1592","b1591","b1590","b1589","b1587","b1583","b1581","b1579","b1575","b1574","b1573","b1571","b1570","b1569","b1567","b1566","b1564","b1563","b1561","b1560","b1557","b1559","b1555","b1554","b1510","b1509","b1459","b1420","b1356","b1552","b1550","b1547","b1546","b1545","b1544","b1543","b1542","b1541","b1539","b1538","b1536","b1535","b1534","b1533","b1532","b1529","b1528","b1526","b1525","b1524","b1523","b1522","b1521","b1520","b1519","b1518","b1517","b1516","b1515","b1513","b1512","b1505","b1503","b1502","b1500","b1499","b1283","b1497","b1496","b1495","b1494","b1493","b1492","b1491","b1489","b1488","b1487","b1486","b1485","b1483","b1481","b1477","b1476","b1474","b1473","b1472","b1471","b1470","b1469","b1468","b1467","b1466","b1465","b1464","b1463","b1462","b1461","b1460","b1458","b1457","b1456","b1455","b1454","b1453","b1450","b1449","b1448","b1446","b1445","b1444","b1443","b1442","b1440","b1437","b1436","b1435","b1434","b1433","b1432","b1431","b1430","b1429","b1428","b1427","b1426","b1425","b1424","b1423","b1422","b1421","b1419","b1416","b1414","b1413","b1412","b1410","b1409","b1408","b1407","b1406","b1405","b1404","b1403","b1400","b1398","b1397","b1396","b1395","b1394","b1393","b1391","b1390","b1387","b1385","b1384","b1383","b1382","b1381","b1380","b1379","b1378","b1377","b1375","b1372","b1370","b1369","b1365","b1368","b1367","b1366","b1363","b1360","b1359","b1358","b1357","b1355","b1354","b1353","b1350","b1349","b1346","b1345","b1344","b1342","b1341","b1340","b1339","b1336","b1334","b1333","b1332","b1331","b1329","b1328","b1327","b1326","b1324","b1321","b1320","b1319","b1317","b1316","b1315","b1314","b1311","b1312","b1309","b1308","gguf-v0.4.0","b1305","b1304","b1303","b1302","b1300","b1299","b1298","b1297","b1296","b1292","b1291","b1290","b1289","b1288","b1287","b1286","b1285","b1284","b1280","b1277","b1276","b1275","b1273","b1269","b1266","b1263","b1261","b1260","b1258","b1257","b1256","b1255","b1254","b1253","b1252","b1251","b1250","b1249","b1248","b1247","b1246","b1245","b1226","b1225","b1223","b1222","b1221","b1220","b1219","b1218","b1217","b1216","b1215","b1214","b1213","b1212","b1204","b1202","b1201","b1198","b1197","b1195","b1194","b1193","b1192","b1189","b1188","b1187","b1185","b1184","b1183","b1181","b1180","b1179","b1177","b1176","b1175","b1174","b1173","b1172","b1171","b1170","b1169","b1165","b1163","b1162","b1157","b1155","b1154","b1151","b1150","b1149","b1147","b1146","b1145","b1144","b1142","b1140","b1138","b1137","b1132","b1130","b1127","b1126","b1125","b1121","b1120","b1119","b1117","b1116","b1112","b1111","b1109","b1108","b1107","b1106","b1105","b1104","b1103","b1102","b1101","b1100","b1099","b1098","b1096","b1095","b1094","b1093","b1092","b1089","b1087","b1086","b1085","b1083","b1081","b1079","b1078","b1077","b1076","b1075","b1074","b1071","b1069","b1068","b1067","b1065","b1063","b1060","b1059","b1057","b1056","b1047","b1054","b1052","b1050","b1049","b1048","b1046"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-58399.json","vanir_signatures":[{"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["91632949561657667511872088537934367622","182941382311164531013244665836278199061","267509021873368201969402681813402480510","47817601274248388747114710904232718674","125744839488091481660148110391485141461","218123491694160943122904983432087008613","63958740836120751375210824858940626262","140466585422054711251362075430312504642","68878006396067724344671231349256520050","30022319390809484472232066176170272797","11381685657690834858136732308699006911","8040651235026344893736737224755713609","85961583921663635110424875276229505119","6094609831660486283612709810367288039","12881981482884316114796199802079454916","186661085181894008670866176687297111941","224474272850880604268781663591215143804","75594346743395530883419923504876447309","191950127737358933686435027794434592374","212972291169220457967143689203419979012","260532599369419753524502101779763160295","194442150778549146008067781636465488050"]},"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"}}],"vanir_signatures_modified":"2026-11-04T07:07:59Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N"}]}