Buffer overflow in Ffmpeg
CVE-2026-65703
FFmpeg versions 2.7 through 8.1.2 contain an out-of-bounds write vulnerability in the TDSC video decoder that allows remote attackers to cause heap corruption by supplying a crafted AVI file that changes frame dimensions across TDSF frames. The tdsc_parse_tdsf() function fails to unreference the existing reference frame before calling av_frame_get_buffer(), causing tdsc_blit() and tdsc_yuv2rgb() to write attacker-controlled pixel data beyond the end of the undersized reference frame buffer, resulting in a process crash and potential code execution.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.003, 26.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Ffmpeg — versions 2.7, fd3ee52fab34d98a95b787d0b5ff45685766200c
Weakness classification (CWE)
References
- Pull Request (issue-tracking, Patch, Issue Tracking)
- Patch Commit (Patch, patch)
- www.vulncheck.com/advisories/ffmpeg-out-of-bounds-write-in-tdsc-video-decoder (Third Party Advisory, third-party-advisory)