Skip to main content

FFmpeg CVE-2026-125209

| EUVDEUVD-2026-120298 HIGH
Incorrect Calculation of Buffer Size (CWE-131)
2026-11-09 disclosure@vulncheck.com GHSA-w4mp-gp7g-4g8p
8.5
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply crafted bitmap subtitle file
  2. Delivery
    Victim transcodes to dvdsub encoder
  3. Exploit
    RLE output size underestimated for odd width
  4. Execution
    Heap buffer overflow corrupts memory
  5. Impact
    Potential arbitrary code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer size calculation
Exploitation Conditions

Exploitation requires the attacker to supply a file containing crafted bitmap subtitles AND the victim/pipeline to transcode those subtitles specifically to the dvdsub encoder (the DVD subtitle output path in dvdsubenc.c), with the subtitle rectangle having an odd width so the pre-patch size bound vrect.w*vrect.h/2 underestimates the byte-aligned RLE output. Affected builds are FFmpeg before 8.1.3 and 9.x before 9.0.2. Limiting factors: the CVSS vector is local (AV:L) with required/passive user interaction (UI:P), meaning no remote unauthenticated path - a human or automated job must perform the dvdsub transcode; the dvdsub encoder is not a default or common output target in typical media workflows, further narrowing realistic exposure.

Impact

Severity signals are moderate-to-high but real-world urgency is tempered by the attack preconditions. The supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P, score 8.5) describes a LOCAL vector requiring passive user interaction, not a remote network-reachable flaw - the attacker supplies a crafted file but a victim or pipeline must transcode it. The vuln.today decision label is 'this_week' (not act_now/emergency). There is no CISA KEV entry and no EPSS score in the input, so active-exploitation and widespread-probability evidence is absent. No weaponized exploit is present; the only code artifact is the FFmpeg FIX commit (8702f12c), not an offensive PoC. The CWE-131 (incorrect buffer-size calculation) root cause is well-characterized by the vendor diff, which confirms the mechanism: the pre-patch bound used vrect.w * vrect.h / 2 instead of the byte-aligned vrect.h * ((vrect.w + 1) / 2), underestimating output for odd-width rectangles. Net: this is a credible memory-corruption bug worth patching this cycle, but it is not a drop-everything internet-facing emergency - exploitation depends on an operator transcoding attacker-controlled subtitle data specifically to the dvdsub encoder. No signals are directly conflicting; the main gap is missing EPSS/KEV data, so probability of mass exploitation cannot be quantified from the input.

Exploit ScenarioDerived

An attacker crafts a media/subtitle file containing bitmap subtitles with an odd-width rectangle and gets it processed by a victim or automated media pipeline that transcodes subtitles to the DVD-subtitle (dvdsub) format. The dvdsubenc encoder underestimates the RLE output buffer for the odd-width case, writing past the allocated heap buffer and corrupting adjacent memory, which can lead to a crash or potentially attacker-influenced code execution. No public exploit code is identified; only the vendor fix commit exists, and the local vector plus required transcode action raise the practical bar.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 09, 2026

Heap buffer overflow in FFmpeg's DVD subtitle encoder (libavcodec/dvdsubenc.c) lets crafted bitmap subtitle files write past the output buffer when they are transcoded to the dvdsub output format, corrupting heap memory in versions before 8.1.3 and 9.x before 9.0.2. The defect is an incorrect size bound: the pre-patch check budgets one nibble per pixel (width × height / 2), but the RLE payload is byte-aligned per scanline, so rectangles with an odd width require more space than reserved. No public exploit was identified at time of analysis, and the assessed vector is local (AV:L) with passive user interaction, so no remote unauthenticated path exists - the attacker must deliver the file and a human or automated job must perform the dvdsub transcode. Vendor-released patch: FFmpeg 8.1.3 and 9.0.2.

RemediationAI

Upgrade to FFmpeg 8.1.3 or 9.0.2, which contain the corrected size calculation in libavcodec/dvdsubenc.c (upstream commit 8702f12c9daa199cc4d7c17164b13c3cdcdc2436, review at https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24486); the VulnCheck advisory (https://www.vulncheck.com/advisories/ffmpeg-before-8.1.3-and-9-x-before-9.0.2-heap-buffer-overflow-via-dvdsubenc-c) tracks the affected and fixed releases. The supplied sources do not document a vendor workaround, and updating is the complete fix; until patched releases are deployed, the practical exposure reduction documented by the evidence is scoping: only pipelines that transcode attacker-supplied subtitles to the dvdsub encoder are affected, so restricting which jobs may target that encoder - or refusing untrusted subtitle inputs to those jobs - removes the vulnerable path, at the cost of losing DVD subtitle output for those untrusted workloads. Binary distributors and downstream packagers should rebuild against the fixed branches rather than backporting ad hoc, since the change is a one-line bound correction in the encoder's buffer-size check.

Affected VersionsENISA

FFmpeg 0 <8.1.3
FFmpeg 9.0 <9.0.2

Affected Packages

euvd ffmpeg fix: 8.1.3, 9.0.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected code is the DVD subtitle encoder in libavcodec/dvdsubenc.c, which converts bitmap subtitle rectangles into the DVD SPU format using a run-length-encoded, two-bits-per-pixel payload whose rows are byte aligned. The root cause is CWE-131, Incorrect Calculation of Buffer Size: the pre-patch guard computed the worst-case requirement as vrect.w * vrect.h / 2 bytes (one nibble per pixel), which is an underestimate whenever vrect.w is odd, because each scanline then consumes ((w + 1) / 2) bytes of RLE data rather than exactly w/2. The upstream fix commit 8702f12c9daa199cc4d7c17164b13c3cdcdc2436 replaces that term with vrect.h * ((vrect.w + 1) / 2), matching the byte-aligned row layout and restoring a correct bound of roughly 17 + 21 bytes of header/footer overhead plus the padded pixel data. Any caller that hands attacker-influenced subtitle bitmaps to the dvdsub encoder along this path can drive the encoder past the allocated output buffer; the supplied sources do not describe the exact bitmap content or RLE pattern needed to trigger the overwrite beyond the odd-width precondition, so the trigger details are not fully documented.

Know when Ffmpeg gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vulncheck) PRIMARY 8.5 HIGH
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
vuln.today AI 7.8 HIGH

Local file-processing vector (AV:L) where the victim must invoke a dvdsub transcode (UI:R); attacker needs no privileges (PR:N); heap corruption plausibly yields high C/I/A within the same component (S:U).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.8 HIGH

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 09, 2026 - 20:03 EUVD
CVE Published
Nov 09, 2026 - 19:16 cve.org
HIGH 8.5

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A heap buffer overflow in FFmpeg's DVD subtitle encoder can be triggered by crafted subtitle files during transcoding, potentially leading to memory corruption. This affects any team or system that processes untrusted subtitle content, including media pipelines and internal automation, but requires local file delivery and user interaction. Leadership should prioritize patching FFmpeg to the fixed versions to prevent potential service disruption or data integrity issues.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Ubiquitous
FFmpeg is embedded in countless media apps, servers, and pipelines worldwide
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

More in Ffmpeg

View all
CVE-2016-1897 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol

CVE-2017-9993 HIGH
7.5 Jun 28

FFmpeg before 2.8.12, 3.0.x and 3.1.x before 3.1.9, 3.2.x before 3.2.6, and 3.3.x before 3.3.2 does not properly restric

CVE-2016-1898 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco

CVE-2013-4265 CRITICAL POC
10.0 Nov 23

The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re

CVE-2020-12284 CRITICAL POC
9.8 Apr 28

cbs_jpeg_split_fragment in libavcodec/cbs_jpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEG_MA

CVE-2026-58049 HIGH POC
8.8 Jun 28

Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m

CVE-2026-30754 HIGH POC
8.8 Sep 08

Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap

CVE-2025-25469 HIGH POC
8.8 Feb 18

Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled

CVE-2021-38094 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker

CVE-2021-38093 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke

CVE-2021-38092 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

CVE-2021-38091 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy