CVE-2026-125178

FFmpeg through 9.0.2 Out-of-Bounds Heap Read via TDSC Cursor Dimensions

Published Nov 9, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
FFmpeg through 9.0.2 contains an out-of-bounds heap read vulnerability in tdsc_load_cursor() in libavcodec/tdsc.c, which stores cursor dimensions before validating them. Attackers can supply a crafted AVI file with oversized TDSC cursor dimensions so tdsc_paint_cursor() reads past the cursor buffer, crashing the decoder or leaking heap memory into frames.

Analysis

AI-generated

Technical impact

An out‑of‑bounds heap read occurs in the tdsc_load_cursor() function in libavcodec/tdsc.c of FFmpeg versions up to 9.0.2. The bug arises because cursor dimensions are stored before they are validated. An attacker who can supply a malicious AVI file containing TDSC cursor dimensions larger than the allocated buffer can trigger tdsc_paint_cursor() to read past the cursor buffer. This can cause the decoder to crash, resulting in a denial of service, or leak portions of the heap into the video frames, potentially revealing sensitive data.

Affected Systems

FFmpeg software, specifically versions through 9.0.2, is affected. The vulnerability is present in the main ffmpeg distribution and any builds that include the libavcodec/tdsc.c implementation without the subsequent patch. Users running older FFmpeg releases should verify their installed version and check for an update.

Risk and Exploitability

The CVSS base score is 6.9, indicating moderate severity. The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog. Attackers would need to supply a crafted AVI file to trigger the issue, which implies that the exploit can be used locally when the user runs ffmpeg on a malicious file, or remotely if ffmpeg is invoked by a web service or media processing pipeline. Based on the description, the likely attack vector is the processing of a user‑supplied media file. The vulnerability can lead to a crash or leakage of heap contents, affecting availability and confidentiality.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to FFmpeg 9.0.3 or later, which contains a fix that validates cursor dimensions before storing them.
  • If an upgrade is not immediately possible, avoid processing untrusted AVI files until the patch is applied, or restrict the file types that ffmpeg accepts in your workflow.
  • Use a sandboxed environment or input validation layer to ensure that only files within expected size limits are processed by ffmpeg.

Generated by OpenCVE AI on November 9, 2026 at 22:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description FFmpeg through 9.0.2 contains an out-of-bounds heap read vulnerability in tdsc_load_cursor() in libavcodec/tdsc.c, which stores cursor dimensions before validating them. Attackers can supply a crafted AVI file with oversized TDSC cursor dimensions so tdsc_paint_cursor() reads past the cursor buffer, crashing the decoder or leaking heap memory into frames.
Title FFmpeg through 9.0.2 Out-of-Bounds Heap Read via TDSC Cursor Dimensions
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-125
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 13, 2026, 12:46 PM
Reserved
Nov 9, 2026, 6:15 PM
Status
Analyzed
Published
Nov 9, 2026, 7:16 PM
Modified
Nov 24, 2026, 2:08 PM