CVE-2026-65704: FFmpeg 8.1.2 Out-of-Bounds Write via TY Demuxer and Shorten Decoder
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 demuxaudio() function decrements packet size without bounds checking, producing a negative size value that is passed to memcpy() in shortendecodeframe(), where conversion to sizet wraps the value to near SIZEMAX and triggers reads beyond the source allocation and writes far beyond the Shorten decoder's bitstream buffer.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-65704?
CVE-2026-65704 has a high severity rating of 7.8.
How do I fix CVE-2026-65704?
To fix CVE-2026-65704, upgrade to FFmpeg version 8.1.3 or later.
What type of vulnerability is CVE-2026-65704?
CVE-2026-65704 is an out-of-bounds write vulnerability.
What software is affected by CVE-2026-65704?
CVE-2026-65704 affects FFmpeg versions up to and including 8.1.2.
What can attackers do with CVE-2026-65704?
Attackers can exploit CVE-2026-65704 to cause heap corruption through a crafted ffconcat file.