{"id":"CVE-2026-116829","summary":"llama.cpp b10398 before b11301 Integer Overflow in gguf_init_from_reader","details":"llama.cpp b10398 before b11301 contains an integer overflow vulnerability in gguf_init_from_reader that allows attackers to bypass tensor element-count validation by supplying shapes whose product wraps to zero. Attackers can craft GGUF files with enormous tensor extents that overflow ggml_nbytes() and strides, causing out-of-bounds memory access when buffers are sized from wrapped byte counts.","modified":"2026-11-10T13:27:19.893104979Z","published":"2026-10-27T00:33:59.223Z","related":["openSUSE-SU-2026:12500-1"],"database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-190"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116829.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116829.json"},{"type":"ADVISORY","url":"https://github.com/ggml-org/llama.cpp/releases/tag/b11301"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116829"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/llama-cpp-b10398-before-b11301-integer-overflow-in-gguf-init-from-reader"},{"type":"REPORT","url":"https://github.com/ggml-org/llama.cpp/issues/29383"},{"type":"FIX","url":"https://github.com/ggml-org/llama.cpp/commit/2149c00f4442dc59302e134a02e4c99d5f7ed9fc"},{"type":"FIX","url":"https://github.com/ggml-org/llama.cpp/pull/29384"},{"type":"ARTICLE","url":"https://github.com/ggml-org/llama.cpp/blob/v0.5.0/ggml/src/gguf.cpp#L701"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ggml-org/llama.cpp","events":[{"introduced":"8e7f22b67ef4667b4ddd50230771287f328cfb3f"},{"fixed":"2149c00f4442dc59302e134a02e4c99d5f7ed9fc"},{"introduced":"7c35571e5dd2e577eddaca7e0ffa7cf46a54fcf2"},{"fixed":"d81235049384534c167caea52b85a694f6103d14"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"b10398"},{"fixed":"b11301"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"range":[{"introduced":"0.1.0"},{"fixed":"0.6.0"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"2149c00f4442dc59302e134a02e4c99d5f7ed9fc"}]},{"source":"REFERENCES_TAG","original_tag":"b11301","range":[{"fixed":"2149c00f4442dc59302e134a02e4c99d5f7ed9fc"}]}]}}],"versions":["b11297","b11299","b11298","b11295","b11294","b11293","b11292","b11284","b11282","b11280","b11279","b11278","b11277","b11276","b11275","b11274","b11273","b11272","b11270","b11269","b11268","b11267","b11266","b11265","b11264","b11263","b11262","b11261","b11260","b11259","b11258","b11235","b11257","b11256","b11255","b11254","b11249","b11247","b11246","b11245","b11243","b11242","b11240","b11239","b11238","b11237","b11236","b11234","b11233","b11232","b11229","b11228","b11227","b11226","b11225","b11224","b11223","b11222","b11221","b11218","b11217","b11216","b11215","b11214","b11213","b11212","b11211","b11209","b11208","b11207","b11206","b11205","b11203","b11202","b11201","b11200","b11199","b11195","b11194","b11193","b11192","b11191","b11190","b11189","b11188","b11185","b11184","b11183","b11182","b11181","b11180","b11179","b11178","b11177","b11176","b11175","b11174","b11173","b11167","b11172","b11171","b11170","b11169","b11168","b11166","b11165","b11163","b11160","b11159","b11158","b11157","b11156","b11155","b11154","b11153","b11151","b11149","b11147","v0.5.0","b11146","b11140","b11139","b11138","b11136","b11135","b11132","b11130","b11126","b11125","b11124","b11123","b11122","b11121","b11120","b11119","b11118","b11062","b11117","b11115","b11111","b11114","b11113","b11112","b11110","b11109","b11108","b11105","b11104","b11103","b11102","b11101","b11100","b11099","b11097","b11096","b11095","b11065","b11094","b11093","b11090","b11081","b11080","b11078","b11077","b11076","b11075","b11074","b11073","b11071","b11070","b11069","b11068","b11067","b11064","b11063","b11060","b11059","b11058","b11057","b11056","b11055","b11054","b11053","b11052","b11050","b11049","b11048","b11047","b11046","b11045","b11044","b11043","b11042","b11040","b11039","b11037","b11036","b11035","b11034","b11033","b11030","b11029","b11028","b11006","b11027","b11007","b11026","b11025","b11024","b11022","b11020","b11019","b11018","b11017","b11016","b11015","b11013","b11012","b11011","b11010","b11009","b11005","b11003","b11002","b11001","b11000","b10999","b10998","b10997","b10996","b10995","b10994","b10993","b10992","b10991","b10990","b10989","b10988","b10985","b10984","b10983","b10982","b10981","b10980","b10978","b10977","b10976","b10975","b10970","b10969","v0.4.1","b10964-b10964-b29c606","b10964","b10955","b10956","b10952","b10951","b10950","b10948","b10947","b10946","b10944","b10941","b10938","b10937","b10936","b10935","b10934","b10933","b10932","b10931","b10930","b10929","b10927","b10926","b10924","b10923","b10922","b10921","b10920","b10919","b10917","b10818","b10909","b10908","b10907","b10906","b10905","b10903","b10902","b10901","b10900","b10899","b10897","b10896","b10894","b10893","b10892","b10891","b10889","b10888","b10887","b10886","b10885","b10884","b10883","b10881","b10878","b10877","b10876","b10875","b10874","b10873","b10872","b10871","b10870","b10869","b10868","b10867","b10865","b10864","b10863","b10859","b10858","b10857","b10856","b10855","b10853","b10852","b10850","b10844","b10842","b10840","b10837","b10839","b10835","b10834","b10833","b10831","b10830","b10829","b10828","b10827","b10826","b10825","b10823","b10822","b10821","b10820","b10819","b10817","b10816","b10814","b10813","v0.4.0","b10809","b10798","b10797","b10796","b10795","b10794","b10793","b10792","b10791","b10790","b10786","b10785","b10784","b10783","b10782","b10781","b10780","b10778","b10777","b10776","b10775","b10774","b10773","b10772","b10771","b10770","b10769","b10767","b10766","b10764","b10763","b10762","b10760","b10759","b10758","b10757","b10756","b10754","b10753","b10752","b10751","b10750","b10749","b10743","b10742","b10741","b10740","b10739","b10738","b10737","b10736","b10734","b10733","b10731","b10730","b10729","b10728","b10727","b10726","b10724","b10723","b10721","b10720","b10719","b10718","b10717","b10715","b10714","b10713","b10712","b10711","b10710","b10709","b10708","b10707","b10706","b10705","b10704","b10703","b10702","b10701","b10700","b10699","b10698","b10697","b10696","b10695","b10694","b10693","b10692","b10691","b10690","b10689","b10688","b10687","b10686","b10685","b10684","b10683","b10682","b10681","b10680","b10679","b10678","b10673","b10677","b10676","b10675","b10672","b10670","b10669","b10668","b10667","b10666","b10665","b10664","b10663","b10662","b10661","b10660","b10659","b10658","b10657","b10656","b10655","b10653","b10647","b10649","b10648","b10646","b10645","b10644","b10643","b10642","b10639","b10638","b10636","b10631","b10635","b10632","b10630","b10629","b10628","b10625","b10622","v0.3.0","b10621","b10620","b10618","b10617","b10615","b10614","b10612","b10610","b10608","b10606","b10605","b10604","b10603","b10599","b10598","b10595","b10594","b10593","b10590","b10589","b10588","b10587","b10586","b10585","b10584","b10582","b10581","b10580","b10578","b10577","b10576","b10573","b10569","b10568","b10567","b10545","v0.2.0","b10566","b10549","b10548","b10541","b10539","b10538","b10537","b10536","b10534","b10533","b10532","b10531","b10524","b10520","b10519","b10517","b10516","b10514","b10509","b10507","b10506","b10505","b10502","b10499","b10488","b10486","v0.1.2","b10485","b10483","b10481","b10472","v0.1.1","b10470","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-116829.json","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/ggml-org/llama.cpp/commit/2149c00f4442dc59302e134a02e4c99d5f7ed9fc","target":{"file":"ggml/src/ggml.c","function":"ggml_new_tensor_impl"},"deprecated":false,"digest":{"length":1590,"function_hash":"327008579970446684198592764916826877732"},"id":"CVE-2026-116829-14a49ada","signature_type":"Function"},{"deprecated":false,"digest":{"length":13012,"function_hash":"306806189849612191089111408122884716135"},"id":"CVE-2026-116829-175cdd58","signature_type":"Function","signature_version":"v1","source":"https://github.com/ggml-org/llama.cpp/commit/2149c00f4442dc59302e134a02e4c99d5f7ed9fc","target":{"function":"gguf_init_from_reader","file":"ggml/src/gguf.cpp"}},{"target":{"file":"ggml/src/ggml.c"},"deprecated":false,"digest":{"line_hashes":["151617382865492608495037475346857875900","26617089450192489583597841553388092763","299746848554397945435673906492247271710"],"threshold":0.9},"id":"CVE-2026-116829-2f436cb1","signature_type":"Line","signature_version":"v1","source":"https://github.com/ggml-org/llama.cpp/commit/2149c00f4442dc59302e134a02e4c99d5f7ed9fc"},{"source":"https://github.com/ggml-org/llama.cpp/commit/2149c00f4442dc59302e134a02e4c99d5f7ed9fc","target":{"file":"ggml/src/gguf.cpp"},"deprecated":false,"digest":{"line_hashes":["86125955495481757442445399983476606326","223484148196014233879030570814555648817","31101579815421514831460345759875474999","3228141914162085994084903930886695179","173252202570372690622550372905511393549","288561244025134565176274276115378736225","51763181196258974679012940833410897613","243962899491721986022916865640666706903","110541158335155739614350480674182421891","76497975123502622992641479407361679718","6130720641754833590901443915510699417","210100815621069141953415013490008692092"],"threshold":0.9},"id":"CVE-2026-116829-554ee113","signature_type":"Line","signature_version":"v1"}],"vanir_signatures_modified":"2026-11-04T07:03:34Z"}}],"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:L/VA:H/SC:N/SI:N/SA:N"}]}