# CVE-2026-135706: FFmpeg before 9.1 Heap Buffer Overflow via libmodplug Demuxer

- Severity: High 7.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-11-24T03:14:11.093Z
- Modified: 2026-11-25T19:31:49.153Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- FFmpeg FFmpeg: before 9.1

## Every score

- VulnCheck: CVSS:4.0 7.3 High `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`
- VulnCheck: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24914> (issue-tracking, patch)
- <https://github.com/FFmpeg/FFmpeg/commit/edc96a209b25b78d3e4b96e951774eb13c8da0b0> (patch)
- <https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavformat/libmodplug.c#L200> (product, technical-description)
- <https://github.com/FFmpeg/FFmpeg> (product)
- <https://www.vulncheck.com/advisories/ffmpeg-before-9.1-heap-buffer-overflow-via-libmodplug-demuxer> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-135706](https://www.cve.org/CVERecord?id=CVE-2026-135706), CVE Terms of Use, modified 2026-11-24
- NVD: [CVE-2026-135706](https://nvd.nist.gov/vuln/detail/CVE-2026-135706), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-135706 · Whole record: https://cve.day/CVE-2026-135706.json · Rebuilt by cve.day 2026-11-25T22:59:53.672Z
