Description
FFmpeg before 8.1.3 and 9.x before 9.0.2 contains a heap buffer overflow vulnerability in the DVD subtitle encoder that underestimates RLE output size for odd-width rectangles. Attackers can supply files with crafted bitmap subtitles that, when transcoded to the dvdsub encoder, write past the output buffer and corrupt heap memory.
Published: 2026-11-09
Score: 8.5 High
EPSS: n/a
KEV: No
Impact: Heap Buffer Overflow leading to memory corruption
Action: Immediate Patch
AI Analysis

Impact

FFmpeg before 8.1.3 and in the 9.x series before 9.0.2 contains a heap buffer overflow bug in the DVD subtitle encoder. The flaw stems from an underestimation of the run‑length encoded output size for odd‑width rectangles. Attackers can supply a media file with a crafted bitmap subtitle, and when ffmpeg transcodes the subtitle to the dvdsub encoder the resulting overflow writes past the allocated output buffer, corrupting heap memory. This vulnerability is characterized as CWE‑131 – incorrect calculation of buffer size. The consequence is potential arbitrary code execution or denial of service via heap corruption.

Affected Systems

The products affected are FFmpeg, specifically any release prior to 8.1.3 or the 9.x series before 9.0.2. The vulnerability resides in the libavcodec/dvdsubenc.c component. System administrators using these FFmpeg versions should verify the installed release and plan for remediation.

Risk and Exploitability

The calculated CVSS score is 8.5, indicating a high severity issue. The EPSS score is not available, and the vulnerability has not been listed in the CISA KEV catalogue. Attackers need only provide a crafted media file to the ffmpeg engine, making the attack remotely achievable in environments where ffmpeg processes untrusted media, such as media conversion services or user‑supplied uploads. Given the lack of a known exploit and the absence from KEV, the exact likelihood of exploitation is uncertain, but the high severity and heap corruption mechanism warrant prompt attention.

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

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FFmpeg to version 8.1.3 or newer, or to the 9.0.2 or later releases of the 9.x series.
  • If an immediate upgrade is not possible, disable DVD subtitle encoding or replace the dvdsub encoder with an alternative that does not use the vulnerable routine.
  • Review and validate input media files before processing with ffmpeg to prevent maliciously crafted subtitles from being encoded.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 09 Nov 2026 19:15:00 +0000

Type Values Removed Values Added
Description FFmpeg before 8.1.3 and 9.x before 9.0.2 contains a heap buffer overflow vulnerability in the DVD subtitle encoder that underestimates RLE output size for odd-width rectangles. Attackers can supply files with crafted bitmap subtitles that, when transcoded to the dvdsub encoder, write past the output buffer and corrupt heap memory.
Title FFmpeg before 8.1.3 and 9.x before 9.0.2 Heap Buffer Overflow via dvdsubenc.c
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-131
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-09T19:11:26.674Z

Reserved: 2026-11-09T18:15:15.250Z

Link: CVE-2026-125209

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-09T19:16:57.643

Modified: 2026-11-09T19:16:57.643

Link: CVE-2026-125209

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-09T22:30:17Z

Weaknesses
  • CWE-131

    Incorrect Calculation of Buffer Size