Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft media with timestamp gaps that are multiples of 65536
-
ExploitFeed to FFmpeg MPEG-4/MPEG-1-2 B-frame encoder
-
Execution16-bit truncation yields zero frame distance
-
ImpactDivision by zero raises SIGFPE and crashes process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Division safety checks
|
| Exploitation Conditions | Requires an application that uses FFmpeg (through 9.0.2) as an ENCODER with the MPEG-4 Part 2 or MPEG-1/2 codec and B-frames enabled, and that lets an attacker influence frame presentation timestamps so the inter-frame distance is a multiple of 65536; that distance is truncated to 16 bits and becomes zero, driving the division by zero in B-frame motion estimation. Limiting factors that reduce real risk: the vector is local (AV:L) and requires a user/operator to run the encode (UI:P), it affects only the encoding path for specific legacy codecs rather than the broadly exposed decoder, and the impact is confined to a process crash (availability only, no code execution or data exposure). |
| Impact | Signals point to a moderate, not urgent, priority. The vendor CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P, VC:N/VI:N/VA:H, score 6.8) describes a local, low-complexity, availability-only impact - a process crash, with no confidentiality or integrity effect. The vuln.today decision label is 'this_month' (routine patch cadence), not act_now/emergency, which is consistent with a DoS-only defect. There is no CISA KEV listing and no confirmed public exploit code; EPSS is not supplied, so exploitation-probability cannot be weighed numerically - state this as a gap rather than assume low. The most important nuance the raw score hides: this flaw is in FFmpeg's ENCODER path (MPEG-4 Part 2 / MPEG-1/2 B-frame motion estimation), not the far more commonly exposed decoder path, so it only matters where an application re-encodes attacker-influenced input with these specific legacy codecs and B-frames enabled. Net: a legitimate availability bug worth patching on a normal cycle, but low real-world blast radius relative to its CVSS because of the local vector, encoding-only trigger, and crash-only consequence. |
| Exploit ScenarioDerived | A service or application that re-encodes user-supplied video with FFmpeg's MPEG-4 Part 2 or MPEG-1/2 encoder and B-frames enabled ingests a file whose frame timestamps are spaced at multiples of 65536. Because the timestamp distance is truncated to 16 bits, it collapses to zero in estimate_motion_b(), producing a division by zero and a SIGFPE that terminates the encoding process. No public exploit code is identified at time of analysis; the attack vector is local (CVSS AV:L) and requires the victim to run an encoding operation on the crafted input (UI:P). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 09, 2026
A division-by-zero in FFmpeg's B-frame motion estimation (estimate_motion_b() in libavcodec/motion_est.c) aborts the process with SIGFPE when an application uses FFmpeg through 9.0.2 as an encoder for MPEG-4 Part 2 or MPEG-1/2 with B-frames enabled and the frame presentation timestamps it is fed differ by a multiple of 65536. The inter-frame distance is truncated to 16 bits, becomes zero, and is subsequently used as a divisor. The assessed vector is local (AV:L) with user interaction (UI:R) and availability-only impact (A:H, no confidentiality or integrity effect), giving a moderate priority of this_month; no public exploit code and no confirmed active exploitation were identified at time of analysis, and fixes exist only as upstream commits so far.
RemediationAI
No tagged patched release is confirmed in the available data; upstream fixes exist as commits 16d19ccbce802634662a9bf18a5679cf27da2848 and bf0a2e4680df92d8de6514090d350152eb7845b8 (discussion in https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24552), so distributors and embedders should backport those commits or track their packaging channel for the first release that carries them and verify the fix by re-running the failing encode case. Because the trigger is fully described, practical compensating controls are available until then: clamp or reject presentation timestamp deltas supplied by untrusted callers so that no inter-frame distance reaches or exceeds 65536 time_base units, or normalize such inputs before handing them to the encoder - with the trade-off that legitimate long-gap content may be rewritten; alternatively disable B-frames (bf=0) for MPEG-4 Part 2 and MPEG-1/2 encoding, at the cost of reduced compression efficiency; or run encoding jobs in an isolated worker that is restarted on abnormal termination so a SIGFPE degrades to a failed job rather than a lost service. Each of these limits availability impact only - none is a substitute for the upstream fix.
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 MPEG-family encoders perform motion estimation for B-frames through libavcodec/motion_est.c, where estimate_motion_b() derives scaling factors from the distance between the current frame's timestamp and the surrounding reference frames. That distance is stored in a 16-bit quantity, so a timestamp delta that is an exact multiple of 65536 wraps to zero; the subsequent division raises SIGFPE and terminates the encoder process. The root cause is CWE-369 (Divide by Zero) - an unchecked assumption that a temporal distance value is non-zero after truncation. The provided source diff of commit 16d19ccbce802634662a9bf18a5679cf27da2848 addresses the condition in set_bframe_chain_length() in libavcodec/mpegvideo_enc.c by decrementing the B-frame chain length while the pts delta exceeds UINT16_MAX for AV_CODEC_ID_MPEG4; the supplied diff covers only the MPEG-4 codec_id branch, so how the MPEG-1/2 path named in the description is handled is not evidenced by that hunk. This is an encoder-side flaw, not a decoder parsing flaw, so exposure is limited to applications that drive FFmpeg's encoding API with externally influenced timestamps rather than to the far more common decode/transcode pipelines.
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:N/VI:N/VA:H/SC:N/SI:N/SA:N
Local encoder input (AV:L) requiring an operator to run encoding (UI:R), no privileges or auth (PR:N), deterministic crafted trigger (AC:L); crash-only so A:H with C:N/I:N.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
FFmpeg through 9.0.2 contains a division by zero vulnerability in estimate_motion_b() in libavcodec/motion_est.c, caused by frame timestamp distances truncated to 16 bits. Attackers can supply input with timestamp gaps that are multiples of 65536, crashing MPEG-4 Part 2 or MPEG-1/2 B-frame encoding with SIGFPE.
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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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-120182
GHSA-3242-hx2p-rmrh
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB