{"id":"CVE-2026-135706","aliases":[],"title":"FFmpeg before 9.1 Heap Buffer Overflow via libmodplug Demuxer","originalDescription":"FFmpeg before 9.1 contains a heap buffer overflow vulnerability in modplug_read_header() in libavformat/libmodplug.c that allocates the buffer using max_size instead of sz. When max_size is set to 0, attackers can supply crafted module files that avio_read() copies into a zero-sized buffer, causing memory corruption, crashes, or possible code execution.","severity":{"cvss":7.3,"vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.0049,"percentile":0.35038},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"FFmpeg","range":">=0, <9.1","fixed":"9.1"}],"references":[{"url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24914","type":"issue-tracking"},{"url":"https://github.com/FFmpeg/FFmpeg/commit/edc96a209b25b78d3e4b96e951774eb13c8da0b0","type":"patch"},{"url":"https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavformat/libmodplug.c#L200","type":"technical-description"},{"url":"https://github.com/FFmpeg/FFmpeg","type":"product"},{"url":"https://www.vulncheck.com/advisories/ffmpeg-before-9.1-heap-buffer-overflow-via-libmodplug-demuxer","type":"third-party-advisory"},{"url":"https://code.ffmpeg.org/FFmpeg/FFmpeg","type":"web"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/135xxx/CVE-2026-135706.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135706","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-25T19:52:28.238Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135706","license":"NVD terms of use","firstSeenAt":"2026-11-24T04:41:38.449Z"},{"name":"osv","at":"2026-11-26T21:12:15.160Z","url":"https://osv.dev/vulnerability/CVE-2026-135706","license":"CC-BY 4.0","firstSeenAt":"2026-11-24T05:15:24.062Z"},{"name":"cvelistV5","at":"2026-11-29T06:24:31.843Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-135706","license":"CVE Terms of Use","firstSeenAt":"2026-11-24T03:33:23.101Z"}],"firstSeenAt":"2026-11-24T03:33:23.101Z","publishedAt":"2026-11-24T03:14:11.093Z","modifiedAt":"2026-11-25T20:46:05.805Z"}