Skip to main content

FFmpeg EUVDEUVD-2026-120182

| CVE-2026-125232 MEDIUM
Divide By Zero (CWE-369)
2026-11-09 disclosure@vulncheck.com GHSA-3242-hx2p-rmrh
6.8
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Craft media with timestamp gaps that are multiples of 65536
  2. Exploit
    Feed to FFmpeg MPEG-4/MPEG-1-2 B-frame encoder
  3. Execution
    16-bit truncation yields zero frame distance
  4. Impact
    Division 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).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% 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 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

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 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

Vendor (vulncheck) PRIMARY 6.8 MEDIUM
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
vuln.today AI 5.5 MEDIUM

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.

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

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
None
Vulnerable system: Integrity
None
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 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

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Ubiquitous
FFmpeg/libavcodec underlies media processing across countless platforms and services
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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