CVE-2026-65703

FFmpeg 2.7 - 8.1.2 Out-of-Bounds Write in TDSC Video Decoder

Published Jul 23, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FFmpeg to a release newer than 8.1.2, such as 8.1.3 or later, to apply the vendor fix.
  • If an upgrade is not feasible, rebuild or configure FFmpeg without enabling the TDSC decoder so the vulnerable code cannot be executed.
  • Add strict validation of incoming AVI files, ensuring that frame dimensions remain constant across TDSF frames, and reject or refuse to decode files that violate this rule.

Generated by OpenCVE AI on August 3, 2026 at 21:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8716-2 FFmpeg vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
Type Values Removed Values Added
Description 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.
Title FFmpeg 2.7 - 8.1.2 Out-of-Bounds Write in TDSC Video Decoder
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 28, 2026, 1:06 AM
Reserved
Jul 22, 2026, 8:26 PM
Status
Analyzed
Published
Jul 23, 2026, 8:17 PM
Modified
Oct 24, 2026, 3:10 PM
Severity
Moderate
Public date
Jul 23, 2026, 6:52 PM