Skip to main content

FFmpeg EUVDEUVD-2026-120183

| CVE-2026-125233 HIGH
Incorrect Calculation of Buffer Size (CWE-131)
2026-11-09 disclosure@vulncheck.com GHSA-qhxm-9wr9-cwfx
8.5
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Craft input with many bitmap subtitle rectangles
  2. Delivery
    Victim/pipeline transcodes subtitles to dvbsub encoder
  3. Exploit
    CLUT header size undercount overflows output buffer
  4. Execution
    Corrupt adjacent heap memory
  5. Impact
    Crash or potential code execution

Vulnerability Assessment

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

Exploitation requires FFmpeg to transcode a crafted input to the DVB subtitle encoder (libavcodec/dvbsubenc.c, i.e. selecting the dvbsub subtitle codec such as '-c:s dvbsub'), with an input containing many bitmap subtitle rectangles so repeated CLUT segment writes overrun the output buffer. Limiting factors per CVSS 4.0 AV:L/UI:P: the attack vector is local - a crafted file must be processed - and passive user/operator interaction is required because the dvbsub encoder is a non-default, deliberately selected output path, not an automatically triggered one. It is therefore not remotely triggerable unless a service or pipeline specifically re-encodes subtitles to DVB subtitle format; default decode/playback does not invoke this encoder. Affects FFmpeg through 9.0.2.

Impact

Signals are mixed and point to a real-but-not-urgent issue. The input CVSS 4.0 base is 8.5 with a LOCAL attack vector (AV:L), low complexity (AC:L), no privileges (PR:N) but required passive user interaction (UI:P) and High impact to all three of VC/VI/VA - meaning severity is driven by memory corruption, not by remote reach. No EPSS score, no CISA KEV entry, and no PoC/exploit reference are present in the input, so there is no evidence of exploitation probability or active abuse; the only references are the upstream fix commit, the pull request, and the VulnCheck advisory. The vuln.today Decision label is 'this_week', not act_now or emergency, consistent with a serious memory-safety bug that is not under active exploitation. The flaw is a bounded undercount (each CLUT segment header counted as 6 instead of 8 bytes), but it is repeatable across many subtitle rectangles, giving an attacker meaningful control over how much heap is overwritten. Net: a genuine heap-corruption bug in an extremely widely deployed library, but gated behind an operator/pipeline explicitly transcoding to the DVB subtitle encoder - a narrow code path - so prioritize patching without treating it as an emergency.

Exploit ScenarioDerived

An attacker crafts a media or subtitle input containing many bitmap subtitle rectangles and arranges for a victim or an automated transcoding pipeline to re-encode subtitles to the DVB subtitle format with FFmpeg. Because dvbsub_encode() undercounts each CLUT segment header by two bytes, the write runs past the output buffer and corrupts adjacent heap memory, enabling denial of service and potentially code execution. No public exploit identified at time of analysis; only the upstream fix commit is referenced.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 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

A heap buffer overflow in FFmpeg's DVB subtitle encoder (dvbsub_encode() in libavcodec/dvbsubenc.c) through version 9.0.2 causes the encoder to undercount each CLUT segment header by two bytes when validating and decrementing the remaining output buffer size. When a crafted input containing many bitmap subtitle rectangles is transcoded to the dvbsub codec (for example with '-c:s dvbsub'), the repeated CLUT segment writes can exceed the output buffer and corrupt heap memory. The vulnerable path is a non-default, deliberately selected encoder rather than the standard decode/playback path, and exploitation requires a crafted file to be processed plus an operator choosing the DVB subtitle output; no public exploit was identified at time of analysis, though an upstream fix commit is available and the issue is labelled for attention this week.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed. Apply upstream commit 7f80b2ad83f37a4998d9617495c92b28a7339a90 (pull request https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24913), which changes the CLUT segment header accounting in libavcodec/dvbsubenc.c from 6 to 8 bytes in both the bounds check and the buffer-size decrement, and rebuild FFmpeg from a source tree that includes it; verify your build's libavcodec/dvbsubenc.c matches the patched lines rather than assuming a distribution package already carries the change, since no released fixed version number is confirmed in the available data. Where patching or rebuilding cannot happen immediately, the exposure is confined to the dvbsub encoder, so the effective compensating control is to stop that encoder from handling untrusted input: remove or forbid '-c:s dvbsub' (and any equivalent encoder selection) in transcoding pipelines and media-processing APIs, or route untrusted subtitle streams through stream copy or a different subtitle codec instead of re-encoding them to DVB subtitles. The trade-off is loss of DVB subtitle output for those inputs, which breaks broadcast/multiplexing workflows that legitimately require dvbsub but leaves default decode and playback unaffected. Given that the vulnerable path is non-default and requires deliberate encoder selection, and that no public exploit was identified at time of analysis, this is a scheduled rather than emergency fix within the current patch cycle.

Affected VersionsENISA

FFmpeg 0 ≤9.0.2

Affected Packages

euvd ffmpeg no fix

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

FFmpeg's dvbsub encoder builds DVB (ETSI EN 300 743) subtitle bitstreams from bitmap subtitle rectangles, and for each rectangle it emits a colour lookup table (CLUT) segment. The code checks and then decrements the remaining output buffer size assuming a 6-byte CLUT segment header, while the actual header written is 8 bytes long; this is a classic CWE-131 incorrect buffer size calculation, where the size arithmetic diverges from the number of bytes actually emitted. Because the shortfall of two bytes accumulates with every CLUT segment, an input supplying many bitmap subtitle rectangles drives cumulative 6-versus-8-byte accounting error past the declared output buffer, producing a heap buffer overflow and out-of-bounds heap writes. The upstream commit 7f80b2ad83f37a4998d9617495c92b28a7339a90 corrects both the boundary check and the buffer-size decrement from '6 + nb_colors * 6' to '8 + nb_colors * 6' in libavcodec/dvbsubenc.c, and the corresponding upstream pull request is 24913. The flaw lives in the encoder, not the decoder, so it is reached only when FFmpeg is explicitly asked to produce DVB subtitles, such as in transcoding or remultiplexing pipelines that re-encode subtitle streams; ordinary decoding and playback of DVB subtitles never invokes dvbsub_encode(). The published CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P, 8.5) reflects that a crafted file must be processed and that the operator must deliberately select the non-default encoder output path; the trigger relies on cumulative per-rectangle accounting rather than any timing or race condition.

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

An operator must transcode a crafted file to the dvbsub encoder (AV:L, UI:R); no auth is needed (PR:N), and heap corruption yields high C/I/A with no scope change.

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

DescriptionCVE.org

FFmpeg through 9.0.2 contains a heap buffer overflow vulnerability in dvbsub_encode() in libavcodec/dvbsubenc.c that undercounts each CLUT segment header by two bytes. Attackers can supply a file with many bitmap subtitle rectangles that, when transcoded to the dvbsub encoder, writes past the output buffer and corrupts heap memory.

Executive ViewAI

Why It Matters

A heap overflow in FFmpeg's DVB subtitle encoder (CVE-2026-125233, CVSS 8.5) can corrupt memory when crafted subtitle inputs are transcoded to dvbsub output, potentially enabling code execution in media-processing pipelines. Organizations relying on FFmpeg (directly or embedded in products) for subtitle transcoding should prioritize this, as a successful exploit could disrupt production and expose sensitive environments; the vulnerable path is non-default but reachable via a deliberate encoder selection.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include avoiding the dvbsub encoder (-c:s dvbsub), restricting processing to trusted inputs, and running FFmpeg in isolated, least-privilege environments with memory protections enabled.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Ubiquitous
FFmpeg is embedded in countless media tools, pipelines, and platforms
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 No
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
High

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