Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted bitmap subtitle file
-
DeliveryVictim transcodes to dvdsub encoder
-
ExploitRLE output size underestimated for odd width
-
ExecutionHeap buffer overflow corrupts memory
-
ImpactPotential 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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).
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.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
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.
Apply vendor patch.
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-120298
GHSA-w4mp-gp7g-4g8p
NVD
CVE.org
EPSS
Exploit-DB