# CVE-2026-65704: FFmpeg 8.1.2 Out-of-Bounds Write via TY Demuxer and Shorten Decoder

- 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-07-23 · Modified: 2026-07-28
- Aliases: UBUNTU-CVE-2026-65704, DEBIAN-CVE-2026-65704, CGA-22vj-hphr-f2c2, CGA-3vfc-fv26-227r, CGA-4vjv-9w3q-26xr, CGA-5m93-r6vm-vh62, CGA-6f4h-p62x-x7wp, CGA-cr45-2vvc-fg6c, CGA-gvfp-hp8w-h52m, CGA-q73h-p5g6-9w2r, CGA-2h75-989p-xxv7, CGA-2jwp-82pp-7hx7, CGA-2rv7-cfcv-9hqq, CGA-2v8p-rvjp-47j9, CGA-2x44-846g-97w6, CGA-538w-8pc4-gjrf, CGA-5c95-3hg5-gqhm, CGA-5rh3-3f8h-pm97, CGA-6224-6wr8-hx2v, CGA-663q-365h-f76f, CGA-83cc-w7gr-xqj2, CGA-85qh-xvw5-mw2q, CGA-8hr4-qpm4-44v5, CGA-9w85-2fgf-pp3j, CGA-c2w5-h8x8-hjqh, CGA-c8xq-jhc8-7hjh, CGA-cxjf-hg9j-r4q8, CGA-hcm6-x7j5-cw32, CGA-jw27-m8fp-mhx9, CGA-jx29-f369-3qj6, CGA-m2hc-r8mq-cxfc, CGA-p949-9j8f-jxmg, CGA-pj35-j7g4-crvj, CGA-pp45-r2m7-6qph, CGA-qc77-84ch-xj9w, CGA-rp3p-q5mg-xhjr, CGA-rrh9-789r-w78m, CGA-xg2g-26cp-mwwc, CGA-259p-7vrq-5x3m, CGA-38m7-hmr8-wgpj, CGA-3wqg-28pw-gx9c, CGA-4r48-j37v-7c36, CGA-5rj7-pvhw-2vxw, CGA-5w35-32ff-8q5v, CGA-w5mj-927v-5997, CGA-xp3g-2pcp-frr2, CGA-464q-jg8x-m379, CGA-36gh-5jxh-hfm6, CGA-7579-93cp-vg5r, CGA-8q3x-fg58-f289, CGA-gqqv-rpfq-qhw6, CGA-h6rg-78vq-f3pp, CGA-hpr4-rcp8-mx5c, CGA-phj4-fff3-hfj5, CGA-vq46-46qh-rp5f, CGA-w384-mggp-7cmc, CGA-w68m-jw2c-ph25, CGA-x98x-79mc-8c5c, CGA-69wp-jf79-9hpx, CGA-6gcp-j9qr-f668, CGA-7377-v445-84ph, CGA-74vc-vvq9-c2q5, CGA-75qh-5xp7-8m35, CGA-8rrw-3fx3-4p53, CGA-9h8h-29xp-22p6, CGA-f6fq-jvx6-8pj3, CGA-g355-vjrc-9g28, CGA-gqf8-rhf6-jmv5, CGA-j5q2-2pvg-553h, CGA-mgpv-7859-hrqm, CGA-mhrq-5jmm-5qgv, CGA-p828-mwg9-wwv5, CGA-pvfg-xrp2-6c4j, CGA-q2h4-f599-6g47, CGA-vxm5-7p5q-h2wc, CGA-x7v6-h467-cr2w, CGA-8p6g-fxwc-v876, CGA-c2x4-g2hf-76h4, CGA-qwj8-q38g-7hq9, CGA-w69w-rc6g-qjhf
- Record: https://cvemate.com/vulnerability/CVE-2026-65704 · JSON: https://cvemate.com/vulnerability/CVE-2026-65704/json

## Description

```text
FFmpeg through 8.1.2 contains an out-of-bounds write vulnerability that allows attackers to cause heap corruption by supplying a crafted ffconcat file processed with the -safe 0 flag. The TY demuxer's demux_audio() function decrements packet size without bounds checking, producing a negative size value that is passed to memcpy() in shorten_decode_frame(), where conversion to size_t wraps the value to near SIZE_MAX and triggers reads beyond the source allocation and writes far beyond the Shorten decoder's bitstream buffer.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.119%, percentile 1.918%, 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 47)

- 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): \< 8.1.3-r0
- chainguard eco-python-ffmpeg-8-minimal-dev (Chainguard): \< 8.1.3-r0
- chainguard eco-python-ffmpeg-8-minimal-static (Chainguard): \< 8.1.3-r0
- 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): \< 8.1.3-r0
- chainguard ffmpeg-fips-7.1 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-dev (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavcodec61 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavdevice61 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavfilter10 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavformat61 (Chainguard): All versions (No fix recorded)

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23767>
- <https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/de771bd52774a52d45b0e2c82e56995a1ef40df7>
- <https://www.vulncheck.com/advisories/ffmpeg-out-of-bounds-write-via-ty-demuxer-and-shorten-decoder>
- <https://ubuntu.com/security/CVE-2026-65704>
- <https://www.cve.org/CVERecord?id=CVE-2026-65704>
- <https://ubuntu.com/security/notices/USN-8716-1>
- <https://ubuntu.com/security/notices/USN-8716-2>
- <https://security-tracker.debian.org/tracker/CVE-2026-65704>
- <https://code.ffmpeg.org/FFmpeg/FFmpeg>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65704.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-65704>

---

Data as of 2026-12-05T04:50:44.887Z. 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
