CVE-2026-126976

Source
https://cve.org/CVERecord?id=CVE-2026-126976
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-126976.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-126976
Downstream
Published
2026-11-17T23:15:54Z
Modified
2026-11-19T01:03:54Z
Severity
  • 7.0 (High) CVSS_V3 - CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
llama.cpp MTMD Multimodal GGUF File Parsing Integer Overflow Remote Code Execution Vulnerability
Details

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.

Database specific
{
    "cna_assigner":  "zdi",
    "cwe_ids":  [
        "CWE-190"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126976.json"
}
References

Affected packages

Git / github.com/ggml-org/llama.cpp

Affected ranges

Type
GIT
Repo
https://github.com/ggml-org/llama.cpp
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "b8958"
                },
                {
                    "last_affected":  "b8958"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandaloneSingleVersion"
        },
        {
            "range":  [
                {
                    "fixed":  "e2e7a9b2d04e0404131e551243d4bd399ccfe606"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

Other
b8958
b8960
b8962
b8963
b8964
b8966
b8967
b8968
b8969
b8970
b8971
b8972
b8973
b8974
b8977
b8978
b8979
b8980
b8981
b8982
b8983
b8984
b8986
b8987
b8989
b8990
b8991
b8992
b8994
b8995
b8996
b8998
b8999
b9000
b9002
b9004
b9006
b9008
b9009
b9010
b9012
b9014
b9015
b9016
b9018
b9019
b9020
b9022
b9023
b9025
b9026
b9028
b9029
b9030
b9031
b9033
b9037
b9038
b9041
b9045
b9047
b9048
b9049
b9050
b9055
b9056
b9057
b9058
b9060
b9061
b9062
b9063
b9064
b9066
b9070
b9071
b9072
b9073
b9075
b9076
b9077
b9079
b9080
b9081
b9082
b9084
b9085
b9087
b9088
b9089
b9090
b9093
b9094
b9095
b9097
b9099
b9100
b9101
b9102
b9103
b9105
b9106
b9109
b9110
b9112
b9113
b9114
b9115
b9116
b9118
b9119
b9122
b9123
b9124
b9127
b9128
b9129
b9131
b9133
b9134
b9139
b9140
b9141
b9142
b9143
b9144
b9145
b9148
b9150
b9151
b9156
b9158
b9159
b9161
b9163
b9165
b9169
b9172
b9173
b9174
b9180
b9181
b9186
b9189
b9190
b9191
b9192
b9193
b9194
b9196
b9197
b9198
b9200
b9202
b9203
b9204
b9208
b9209
b9213
b9216
b9219
b9221
b9222
b9235
b9239
b9240
b9243
b9244
b9245
b9246
b9247
b9251
b9253
b9254
b9255
b9257
b9258
b9259
b9260
b9263
b9264
b9265
b9266
b9267
b9270
b9271
b9272
b9273
b9274
b9275
b9276
b9277
b9279
b9282
b9283
b9284
b9285
b9286
b9289
b9290
b9291
b9292
b9294
b9295
b9296
b9297
b9301
b9305
b9309
b9310
b9311
b9313
b9315
b9318
b9319
b9320
b9326
b9329
b9330
b9331
b9333
b9334
b9341
b9351
b9352
b9353
b9354
b9357
b9360
b9365
b9366
b9367
b9368
b9369
b9370
b9371
b9374
b9375
b9377
b9378
b9380
b9381
b9382
b9383
b9384
b9386
b9387
b9388
b9389
b9391
b9393
b9394
b9395
b9399
b9400
b9401
b9402
b9403
b9404
b9405
b9406
b9409
b9410
b9411
b9412
b9413
b9414
b9415
b9426
b9428
b9430
b9431
b9432
b9433
b9434
b9436
b9437
b9438
b9439
b9441
b9442
b9444
b9445
b9451
b9452
b9453
b9455
b9457
b9458
b9459
b9460
b9464
b9466
b9467
b9468
b9469
b9470
b9471
b9473
b9474
b9478
b9479
b9480
b9481
b9482
b9483
b9484
b9485
b9486
b9487
b9488
b9489
b9490
b9491
b9493
b9494
b9495
b9496
b9498
b9499
b9500
b9501
b9503
b9504
b9505
b9509
b9510
b9512
b9515
b9518
b9519
b9521
b9522
b9523
b9524
b9528
b9529
b9530
b9531
b9533
b9534
b9535
b9536
b9537
b9538
b9541
b9542
b9543
b9544
b9547
b9548
b9549
b9550
b9551
b9553
b9554
b9555
b9556
b9557
b9558
b9559
b9561
b9562
b9563
b9564
b9565
b9566
b9567
b9568
b9570
b9571
b9572
b9573
b9574
b9575
b9577
b9578
b9580
b9581
b9584
b9585
b9586
b9587
b9589
b9590
b9591
b9592
b9594
b9596
b9601
b9603
b9604
b9605
b9606
b9608
b9610
b9611
b9616
b9619
b9620
b9621
b9622
b9623
b9624
b9625
b9626
b9627
b9628
b9630
b9631
b9632
b9637
b9641
b9642
b9644
b9645
b9646
b9647
b9649
b9650
b9651
b9652
b9653
b9654
b9655
b9656
b9658
b9659
b9660
b9661
b9663
b9664
b9665
b9667
b9668
b9669
b9670
b9672
b9673
b9674
b9675
b9677
b9678
b9680
b9682
b9684
b9685
b9686
b9687
b9688
b9689
b9690
b9691
b9692
b9693
b9694
b9697
b9698
b9699
b9700
b9701
b9702
b9703
b9704
b9707
b9711
b9712
b9713
b9714
b9715
b9716
b9717
b9718
b9721
b9722
b9723
gguf-v0.*
gguf-v0.19.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-126976.json"
vanir_signatures
[
    {
        "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"
        }
    }
]
vanir_signatures_modified
"2026-11-19T01:03:54Z"