{"id":"CVE-2026-65704","published":"2026-07-23T18:55:41Z","modified":"2026-07-28T01:06:12Z","title":"FFmpeg 8.1.2 Out-of-Bounds Write via TY Demuxer and Shorten Decoder","vendor":"FFmpeg","product":"FFmpeg","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00178,"percentile":0.0761,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-191","name":"Integer Underflow (Wrap or Wraparound)"}],"references":[{"url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23767","tags":["issue-tracking"]},{"url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/de771bd52774a52d45b0e2c82e56995a1ef40df7","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/ffmpeg-out-of-bounds-write-via-ty-demuxer-and-shorten-decoder","tags":["third-party-advisory"]}],"priority":{"score":7.0,"factors":[{"name":"EPSS percentile","points":1.52},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"ffmpeg","affectedVersions":[{"vendor":"FFmpeg","product":"FFmpeg","versions":["<= 8.1.2"]}],"fixedVersions":[{"vendor":"FFmpeg","product":"FFmpeg","versions":["de771bd52774a52d45b0e2c82e56995a1ef40df7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-23T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-48371","exploited":false,"provenance":"source"}}