Impact
FFmpeg versions 2.7 through 8.1.2 contain an out‑of‑bounds write in the TDSC video decoder. The vulnerability arises when an attacker supplies a specially crafted AVI file that changes frame dimensions across TDSF frames. During decoding, the tdsc_parse_tdsf() function fails to release the existing reference frame before allocating a new buffer. This causes tdsc_blit() and tdsc_yuv2rgb() to write pixel data beyond the end of the undersized reference frame buffer, leading to heap corruption, process crashes, and potentially remote code execution. The flaw is classified as CWE‑787.
Affected Systems
FFmpeg binaries that include the TDSC decoder, specifically releases 2.7 through 8.1.2. Any application or service that uses these builds to process AVI files is affected.
Risk and Exploitability
The CVSS score of 8.5 denotes high severity, but the EPSS score of less than 1% indicates the likelihood of exploitation is currently low. The vulnerability is exploitable remotely by providing a malicious AVI file to any software that invokes FFmpeg's TDSC decoder. The attack requires the ability to influence the input stream; once triggered, heap corruption can lead to a crash or arbitrary code execution.
OpenCVE Enrichment