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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-24 · Modified: 2026-11-24
- Aliases: DEBIAN-CVE-2026-135706, UBUNTU-CVE-2026-135706, CGA-3rhr-f4c5-9c4c, CGA-6m7x-mw58-8gvg, CGA-825c-r85w-4chr, CGA-83pp-8qhc-qgpj, CGA-9qmw-r7ch-xm7x, CGA-j9gf-q8qr-mjf9, CGA-p98m-2crh-37h4, CGA-x4j5-6hc3-3mg8, CGA-8xg8-jq9h-vc5f, CGA-grg2-wx2j-783h, CGA-gxvr-6qvc-9w4c, CGA-wcwx-725p-m49r, CGA-wjrc-c6m7-mrvf, CGA-wvfr-rf8w-2hq3, CGA-3c5r-6423-4mpp, CGA-3jc9-5374-3v9r, CGA-3jqv-pqg6-8wmx, CGA-43j8-483j-gph6, CGA-43r5-qp8r-3pv8, CGA-587h-x3q3-q37c, CGA-5h72-hfv6-3944, CGA-5jxf-rhj9-xvp5, CGA-5m4q-fj6c-pfrf, CGA-6j27-j642-vgq3, CGA-6xmc-m382-m925, CGA-74fw-gcjv-7xpg, CGA-7hhx-w8qr-4xxj, CGA-7hvc-37pw-c842, CGA-7rp3-xq76-5h8r, CGA-828v-6fq4-45cg, CGA-873f-42fr-vjmg, CGA-8c75-94j3-m6x4, CGA-8mw6-cmxp-6m6g, CGA-8mwf-4ggm-cfq8, CGA-8p99-62cm-hp2h, CGA-8qrv-cwx8-p5g6, CGA-9qr3-h6j7-gjqm, CGA-c8wp-j6pg-ggmw, CGA-cgw2-fx24-8h92, CGA-cxmp-99wg-v7mj, CGA-cxr3-mm43-r83c, CGA-f7q3-6465-fp6f, CGA-fhj3-7qjx-4ghg, CGA-fw23-gmj9-h9hf, CGA-g63w-ph2w-9836, CGA-g9mf-vvj4-75fx, CGA-gc4f-wqxh-rqjv, CGA-hjw6-vmgj-j99r, CGA-hpww-x2cj-q9rc, CGA-hvg8-qqwv-4r7w, CGA-j2v7-4q25-c724, CGA-jhpf-926p-wf2h, CGA-m5c2-2c53-259j, CGA-m727-hjvf-927x, CGA-mfmc-pxqr-5rgj, CGA-mjmj-c27f-pw26, CGA-mw26-g2cp-7cfc, CGA-p45f-2498-3626, CGA-pmvm-68q5-fx85, CGA-pmwp-2hrr-8grx, CGA-q4ch-73r5-h2rx, CGA-qg45-2m95-vjx4, CGA-r34x-h2x6-pf36, CGA-r964-w9mq-qhcc, CGA-rcfc-4g2r-c59j, CGA-rjxx-5fwj-p2jg, CGA-rqgr-5655-v5f6, CGA-rvmp-wc5q-265p, CGA-v2wp-7c3v-65rh, CGA-v5fj-q4mw-9q8w, CGA-vh4q-x423-gp2q, CGA-w2m3-8jqc-q85p, CGA-w55g-533x-46jh, CGA-w8jv-2ph3-m84h, CGA-wj6h-p5xp-r9mp, CGA-wm7j-gfh9-pm5p, CGA-wqfr-j2f2-77g9, CGA-x5jq-2fh8-hrcj, CGA-x9gp-xgq7-r48c, CGA-xfc8-7h8j-g752, CGA-xj3f-x927-95j7, CGA-xrr3-7434-w288, CGA-wc8q-qx2r-gv8x, CGA-2vc7-748w-gc4c, CGA-33vw-52v4-6f4w, CGA-36jm-cg3w-98v5, CGA-37wv-9q9w-93m3, CGA-3hxx-m7fw-f96c, CGA-44f3-7q5h-ff8w, CGA-4pgx-mqf4-f8q8, CGA-5gqm-73f7-f6x8, CGA-6qgm-vp2g-p65m, CGA-6rmx-42xp-m4h3, CGA-74vv-8v8q-vg4h, CGA-7pf2-jq5h-527h, CGA-83pg-cfp3-rvvh, CGA-87f4-wwrc-55xh, CGA-8jg9-v3cp-82gx, CGA-8pg7-h34j-q684, CGA-8q9p-vgfh-x5cv, CGA-8rp4-mj9q-3434, CGA-9377-84qx-9278, CGA-9ghq-455q-cjp3, CGA-cghf-5hwx-7x67, CGA-cj8q-wmr7-wr47, CGA-f4xx-rpxf-pqqf, CGA-fv9g-hc6p-jh7r, CGA-g7gg-q97c-mcr3, CGA-gf29-8pj7-7vj5, CGA-gfxh-h22x-23g9, CGA-h87q-px5c-rgm6, CGA-h9jr-8w3c-593g, CGA-j758-v287-rr5q, CGA-m3mv-g2f3-6w6c, CGA-m73j-85c8-rj3m, CGA-mhr4-p75g-gjwr, CGA-mpj9-97wv-c7fc, CGA-q8mv-43hw-8wx5, CGA-qchr-27fx-g7cg, CGA-r79j-35hp-92rr, CGA-v42r-mrv5-64hf, CGA-vhpj-p23h-c5fr, CGA-vp25-qcqp-2845, CGA-vqmw-6hxg-vpw4, CGA-w574-538w-hqmf, CGA-wcph-v3mx-ccj9, CGA-x57m-965w-6w6r, CGA-437r-gfx3-7wmh, CGA-fhjr-5c84-29q4, CGA-fjxw-7w96-55q6, CGA-j295-w4g3-vq4g, CGA-jh58-pf88-6wc8, CGA-pg9x-vv76-cgw4, CGA-w4x8-mxvr-vv4j, CGA-wj7g-x595-7fr3, CGA-xcvm-wmcv-qfcp
- Record: https://cvemate.com/vulnerability/CVE-2026-135706 · JSON: https://cvemate.com/vulnerability/CVE-2026-135706/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.49%, percentile 43.766%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 77)

- chainguard eco-python-ffmpeg-6-minimal (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-6-minimal-dev (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-6-minimal-static (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal-dev (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal-static (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-8-minimal (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-8-minimal-dev (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-8-minimal-static (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-6 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-7 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-7.1 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-8.0 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-8.1 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-9.0 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-cuda-fips-8.1 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-cuda-fips-8.1-dev (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-cuda-fips-8.1-doc (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-cuda-fips-8.1-static (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-cuda-fips-9.0 (Chainguard): All versions (No fix recorded)

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24914>
- <https://github.com/FFmpeg/FFmpeg/commit/edc96a209b25b78d3e4b96e951774eb13c8da0b0>
- <https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavformat/libmodplug.c#L200>
- <https://github.com/FFmpeg/FFmpeg>
- <https://www.vulncheck.com/advisories/ffmpeg-before-9.1-heap-buffer-overflow-via-libmodplug-demuxer>
- <https://security-tracker.debian.org/tracker/CVE-2026-135706>
- <https://ubuntu.com/security/CVE-2026-135706>
- <https://www.cve.org/CVERecord?id=CVE-2026-135706>
- <https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/edc96a209b25b78d3e4b96e951774eb13c8da0b0>
- <https://code.ffmpeg.org/FFmpeg/FFmpeg>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/135xxx/CVE-2026-135706.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-135706>

---

Data as of 2026-12-05T07:42:32.056Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
