llama.cpp MTMD Multimodal GGUF File Parsing Integer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of llama.cpp. User interaction is required to exploit this vulnerability in that the target must open a malicious file.
The specific flaw exists within the parsing of audio multimodal projector GGUF files. The issue results from the lack of proper validation of user-supplied data, which can result in an integer overflow before allocating a buffer. An attacker can leverage this vulnerability to execute arbitrary code in the context of the current process. Was ZDI-CAN-30980.
{
"cna_assigner": "zdi",
"cwe_ids": [
"CWE-190"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126976.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "b8958"
},
{
"last_affected": "b8958"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"fixed": "e2e7a9b2d04e0404131e551243d4bd399ccfe606"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-126976.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"274549814444775824401767791540805804653",
"7959678604877904004711216173179305508",
"274884625042188622251167985985066582487",
"127220653207458793126701512792492030289",
"77121122991021316494711534892626862738",
"69285240372357415057141995070032223256",
"254037734309536088678040847815655746219",
"28560706284976303724840536424871202359",
"240451466595663784923479383004701356814",
"262362056313627990292208341210074733223",
"154127824696445633114812262503472160432",
"57836703609924984737097039365610000704",
"337917306904915660801782471969728063713",
"166324996665415038490077954110640123271",
"127923140452030680670801720030168177247",
"98272838439171755656262103053359964410"
],
"threshold": 0.9
},
"id": "CVE-2026-126976-2907cdb0",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/e2e7a9b2d04e0404131e551243d4bd399ccfe606",
"target": {
"file": "tools/mtmd/mtmd-audio.h"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "294405994606455517960593128425464317073",
"length": 2217
},
"id": "CVE-2026-126976-40e6c719",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/e2e7a9b2d04e0404131e551243d4bd399ccfe606",
"target": {
"file": "tools/mtmd/mtmd-audio.cpp",
"function": "mtmd_audio_preprocessor_qwen3a::preprocess"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "51831938234116424609347132065866543533",
"length": 1750
},
"id": "CVE-2026-126976-4688c167",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/e2e7a9b2d04e0404131e551243d4bd399ccfe606",
"target": {
"file": "tools/mtmd/mtmd-audio.cpp",
"function": "mtmd_audio_preprocessor_whisper::preprocess"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"331898652963840696619371038657896618454",
"130955982352688928412920210822649530339",
"298679362395592490090360590025045230747",
"172352447435418850328776099687275752838"
],
"threshold": 0.9
},
"id": "CVE-2026-126976-53b9627c",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/e2e7a9b2d04e0404131e551243d4bd399ccfe606",
"target": {
"file": "tools/mtmd/clip.h"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"161393546864053637097405878834302658757",
"74556410689287854672053856614664133353",
"217696863707604318775656130921235764088",
"162280994936994508468703394459629762610",
"177764907343819264997722168648335439556",
"337315170027237021884768569702563566212",
"91850288109612747613528166757895126225",
"207920712785480947539582898319732704553",
"248508771729854445322981520189132790509",
"319421200954107251956591190792338967960",
"123402719669921518441128022136558898130",
"267561544995294446072128741141073105727",
"73751632019448139475390749343338106237",
"306933952376548399449330512978975863601",
"55082459903413533605935013531803656686",
"85417913302445918472207339719205953684",
"149293596543592052988986726147667146376",
"49530089201890257312321801494373242033",
"152249051827278847472806187185854915297",
"30809308071871284463486318862244104062",
"260809243335373783886291884214698362222",
"201186026043645659428882877751285574973",
"194043057156393071644144799252867739324",
"172581880230881929094000301938375179987",
"173826765597310310906614434641301445242",
"122077408088028981684210120343781073299",
"340274233798009635089232890886938740577",
"22269951591516711006243596483360666523",
"139990686502193417108548231029624830419",
"249629131598726231924683341184958011550",
"44185502080989421768622374245679061520",
"122951852424334050251948988861570593743",
"6612382362002883440958113900149384077",
"45116805464052523905127219729876665751",
"299577399685072835562452983967218547159",
"41163150296147284161568823985544145156",
"36118098118651672168032208560923641596",
"228588956042230574060286207031936751036",
"338441066869102197384304997285701515151",
"247588811844726264522416508327501820501",
"147511355116490332759579858400005944202",
"214936350396291248748056271130917870130",
"228382124938172097528431748541834655940",
"279876125431333533476280413494175094475",
"287456301535305900365539406946737017600",
"28223496469765220343228762476055686448",
"156070465240326750587246395396085759957",
"258076141805708337911730612889994967516",
"282219566640693077837375182819904687073",
"185414226569016027322693457773793798286",
"301967486149144447881487532671503557727",
"56152686229345848963882844500104648859",
"176806142578961791871667390910722034250",
"49965461336837926481034142627967593478",
"75837402420698485185457619802652466752",
"162391661234621948266290861404081389683",
"314774097874137866657172537747595154348",
"212733864432628466295597488481016150421",
"124474871604561602086404474831017807962",
"288793039423964287106062863101250632747",
"134234304198462993247675911491719448333",
"272629238503821062340776298046692925594",
"248715552459126591011176376693690781642",
"186039550583490978584492506115880339505",
"297788882894784282097772591093532268742",
"176325092444330879324555120821937261626",
"107459425862063720553983780924520861908",
"314203255802108508387971705810731166857",
"203846149022888399955821280974829963735",
"40898943561386661323675686747393261655",
"56963935923900333058490783973785525808",
"77526468827500618447593661180289710195",
"71718653371159937678314349718085988154",
"255280695553831066751410050203959417143",
"95972119250181406127983231336401112419",
"175225565747541015149331988381916664648",
"131388411361431480245777417369729623350",
"31152480230819308959540633267886430023",
"199121876872581193335871888591747763630",
"323755072379672483840122892488633300243",
"25446257722164013770460364516152856430",
"249152804595649381661208909847531625697",
"77986483397800849082385977680178342103",
"68300901363923535004352792131858702475",
"118856528834284812104064775424231146220",
"216751690431836375067614328316283585938",
"6088533790121507134554579693072714956",
"36297261644976955615719118119092438280",
"211557724000195388490572811532314677876",
"162389208677717344525318531792954805331",
"8189465937288121914836517839977220832",
"243861042043742782908266845690792428209",
"286800500878152097653226653951355311123",
"16080224333580019690398156620817339373",
"113082543398504523770449663436059669981",
"187743091229355262232065929848843879473",
"303268062388780581312743115733909199907",
"16291667898865622394463964609691552437",
"215849906997034020931628831816042747227",
"305016035653029894714251396764104236207",
"203949189168662769697441068528388841439",
"234964901540194565795989808266643021845",
"81098397580333846304634103931079723532",
"279412207208779684342103824183967641993",
"24260981148747626598893107815808766374",
"270152887086961649426213090989896255054",
"106169222143284762714927096439257666077",
"265945103343464776100465298224872088505",
"203243629313017518018360871467286165546",
"134277841650741245033676874118605923923",
"261578912230165774246952454405709871177",
"120530834738383507943203230346034126672",
"100427644435783017742293720927561890091",
"284584986998520229905889060064930399141",
"34494342591289441784974654131201163624",
"338246201737304599649209599243362997030",
"149609998442216339210536439891563822758",
"266876819515657418968530761850166363200",
"152335044113847079275280105054239965693",
"42018714323498065718177512642645975964",
"38202145092268708477869529306731871328",
"332557398111599018516829973458077887889",
"16144471943729340256822249852941925981",
"333810713989496299275078080538478139027",
"103559952355460020258969336821399529258",
"260810252024212323571408029032231795091",
"152028440954816163597130330375965323043",
"197147500629343603833331141791436427418",
"138294295781092719306172197876781782028",
"168720260363682606024005806294378996255",
"273999665134329394953711083428832489624",
"189451566621177723639891145469621270925",
"316280331074013539214463215462583161076",
"239348259264236993936337560681325920968",
"116919870481826533035812908940399328667",
"248508904071007183349149714856392583070",
"101954421079996886423704486070896850376",
"164688272642070333939209238451228653650",
"233499610318126152967344854763802300867",
"176623908739820922919194149605421219769",
"285341266265755579004551861211740527553",
"41723568420392789317465843193550818212",
"192039702360282223003232978694873660834",
"319618989063871520097842391918823765799",
"326951242783252530301138462062702118529",
"230236674484917191773308742312760538421",
"262914812906855078894805685915216861573",
"48779373326996600642690247815625750064",
"137084416381055274805281691758692150542",
"46542319386269040196221321261123168302",
"225687115161977731840158255834443085986",
"160845554316163361386790694259955220211",
"319986483932189931169293749330559721780",
"9853198246214879664868157920836617330",
"257423149167455760395914928491011545073",
"27230259843791901658917815811188102601",
"26448451313979254382180568972708341161",
"287847671379398507786608096911966456943",
"266302168064680718192890012428512695507",
"53922232761501370800151168934679386137",
"79233998853347151068477633470996818743",
"137715109835203621697062104729454804621",
"42533748448234266125778699066888647026",
"82676027992124664432661721842521802011",
"219319280561581552603714825678513943832",
"242394585408495905808526571843272514338"
],
"threshold": 0.9
},
"id": "CVE-2026-126976-57b4fc8c",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/e2e7a9b2d04e0404131e551243d4bd399ccfe606",
"target": {
"file": "tools/mtmd/mtmd-audio.cpp"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"339470945784273115554456561890415547320",
"222390188396368402193434029303344334927",
"169879926086830221073915012417530039040",
"173375478446598827673396259810019571050",
"278546647282164217402224568377161624955",
"216246967499075182356337293124029417686",
"53221762307382302812075551907635184522",
"222813263865251543088097136811036645664",
"86781778213813613734155563903021092561",
"129275947962868336116230724617057956499",
"311699343311338002384413911919206810270",
"149670720309062753688808579021434147815",
"314534804936344233305467274117759567743",
"333005458573069746740463010698393850508",
"302237702728886807729374828232894015046",
"29607596948989626826191922807850130205"
],
"threshold": 0.9
},
"id": "CVE-2026-126976-6a4197a4",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/e2e7a9b2d04e0404131e551243d4bd399ccfe606",
"target": {
"file": "tools/mtmd/clip.cpp"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "291634238977380291348802796030180115766",
"length": 2272
},
"id": "CVE-2026-126976-71e187be",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/e2e7a9b2d04e0404131e551243d4bd399ccfe606",
"target": {
"file": "tools/mtmd/mtmd-audio.cpp",
"function": "mtmd_audio_preprocessor_granite_speech::preprocess"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "119753541049245112884016542682547827103",
"length": 2428
},
"id": "CVE-2026-126976-73af26a4",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/e2e7a9b2d04e0404131e551243d4bd399ccfe606",
"target": {
"file": "tools/mtmd/mtmd-audio.cpp",
"function": "mtmd_audio_cache::fill_mel_filterbank_matrix"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "208442629688572813448786390198507217947",
"length": 3913
},
"id": "CVE-2026-126976-aa4ec28d",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/e2e7a9b2d04e0404131e551243d4bd399ccfe606",
"target": {
"file": "tools/mtmd/mtmd-audio.cpp",
"function": "log_mel_spectrogram"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "25345269872999143446501771318516921765",
"length": 1968
},
"id": "CVE-2026-126976-c9ea72c4",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/e2e7a9b2d04e0404131e551243d4bd399ccfe606",
"target": {
"file": "tools/mtmd/mtmd-audio.cpp",
"function": "log_mel_spectrogram_worker_thread"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"192651919813414042741818909817515286764",
"29530849315789328453227082212837803227",
"329621860615560646928100151843674985288",
"267792852394563721466828911112523846357",
"37314599908574861979870393577970653261",
"81376676758904080890084094831452943919"
],
"threshold": 0.9
},
"id": "CVE-2026-126976-f059b2b3",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/e2e7a9b2d04e0404131e551243d4bd399ccfe606",
"target": {
"file": "tools/mtmd/mtmd.cpp"
}
}
]
"2026-11-19T01:03:54Z"