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

- Severity: High 7.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/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.12%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-07-23T18:55:41.842Z
- Modified: 2026-08-07T00:16:40.287Z
- Weaknesses: CWE-191, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- FFmpeg FFmpeg: up to 8.1.2 (not affected: de771bd52774a52d45b0e2c82e56995a1ef40df7)

## Every score

- VulnCheck: CVSS:4.0 7.3 High `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: 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/23767> (issue-tracking, patch)
- <https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/de771bd52774a52d45b0e2c82e56995a1ef40df7> (patch)
- <https://www.vulncheck.com/advisories/ffmpeg-out-of-bounds-write-via-ty-demuxer-and-shorten-decoder> (third-party-advisory)

## Sources

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

---

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