Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft input with many bitmap subtitle rectangles
-
DeliveryVictim/pipeline transcodes subtitles to dvbsub encoder
-
ExploitCLUT header size undercount overflows output buffer
-
ExecutionCorrupt adjacent heap memory
-
ImpactCrash 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol
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
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco
The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re
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
Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m
Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap
Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled
Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker
Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke
Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
EUVD-2026-120183
GHSA-qhxm-9wr9-cwfx
NVD
CVE.org
EPSS
Exploit-DB