CVE-2026-65704

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*

History

07 Aug 2026, 00:16

Type Values Removed Values Added
CPE cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
References () https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/de771bd52774a52d45b0e2c82e56995a1ef40df7 - () https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/de771bd52774a52d45b0e2c82e56995a1ef40df7 - Patch
References () https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23767 - () https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23767 - Issue Tracking, Patch
References () https://www.vulncheck.com/advisories/ffmpeg-out-of-bounds-write-via-ty-demuxer-and-shorten-decoder - () https://www.vulncheck.com/advisories/ffmpeg-out-of-bounds-write-via-ty-demuxer-and-shorten-decoder - Third Party Advisory
First Time Ffmpeg
Ffmpeg ffmpeg

23 Jul 2026, 20:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-07-23 20:17

Updated : 2026-08-07 00:16


NVD link : CVE-2026-65704

Mitre link : CVE-2026-65704

CVE.ORG link : CVE-2026-65704


JSON object : View

Products Affected

ffmpeg

  • ffmpeg
CWE
CWE-191

Integer Underflow (Wrap or Wraparound)

CWE-787

Out-of-bounds Write