{"id":"CVE-2026-75904","published":"2026-08-18T15:21:58Z","modified":"2026-09-24T14:19:32Z","title":"libmodplug <= 0.8.9.1 - Out-of-Bounds Read in pat_smplooped via Crafted MIDI File","vendor":"Konstanty Bialkowski","product":"libmodplug","tier":"tail","description":{"text":"libmodplug through 0.8.9.1 contains an out-of-bounds read in pat_smplooped in src/load_pat.cpp. The function validates only the upper bound of its sample index against MAXSMP and then subtracts one before indexing the 191-byte static array pat_loops, so an index of zero reads pat_loops[-1], one byte before the array. The index is the smpno field of a parsed MIDI event, which is initialised to zero and only later overwritten from a program-change parameter, so an event reaching the note test before an instrument is assigned carries zero. A 32-byte MIDI file supplied to the library's public ModPlug_Load entry point drives the path through CSoundFile::Create, CSoundFile::ReadMID, and MID_ReadPatterns to the read. The byte read out of bounds determines whether a note event is treated as looping, so adjacent static storage influences playback state.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.3,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0017,"percentile":0.03626,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/Konstanty/libmodplug/issues/103","tags":["issue-tracking"]},{"url":"https://github.com/Konstanty/libmodplug/blob/d1b97ed0020bc620a059d3675d1854b40bd2608d/src/load_pat.cpp#L213-L217","tags":["technical-description"]},{"url":"https://github.com/Konstanty/libmodplug/blob/d1b97ed0020bc620a059d3675d1854b40bd2608d/src/load_mid.cpp#L829","tags":["technical-description"]},{"url":"https://github.com/Konstanty/libmodplug","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/libmodplug-out-of-bounds-read-in-pat-smplooped-via-crafted-midi-file","tags":["third-party-advisory"]}],"priority":{"score":3.0,"factors":[{"name":"EPSS percentile","points":0.73},{"name":"CVSS severity","points":2.31}]},"vendorSlug":"konstanty-bialkowski","affectedVersions":[{"vendor":"Konstanty Bialkowski","product":"libmodplug","versions":["<= 0.8.9.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-18T15:35:53.142035Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-60967","exploited":false,"provenance":"source"}}