Skip to main content

FFmpeg EUVDEUVD-2026-120274

| CVE-2026-125185 MEDIUM
Divide By Zero (CWE-369)
2026-11-09 disclosure@vulncheck.com GHSA-pgwj-4q23-4rrr
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 HEVC/VVC file with zero-increment AFGS1 scaling points
  2. Delivery
    Deliver file to victim or transcoding pipeline
  3. Exploit
    FFmpeg parses T.35 SEI film-grain data
  4. Execution
    Divide-by-zero in generate_scaling()
  5. Impact
    Decoder crash (denial of service)

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

Exploitation requires the target to decode an attacker-crafted HEVC or VVC file whose T.35 SEI message carries AFGS1 film-grain scaling points with repeated (zero-increment) x values; parsing that specific malformed film-grain metadata is what drives the division by zero in generate_scaling(). Limiting factors: the victim must actively process the malicious file (UI:P), the attack vector is local decoding (AV:L) rather than a direct network service hit, and impact is confined to a decoder crash (availability only - no code execution, data disclosure, or integrity loss indicated). The realistic exposure concentrates in deployments that decode untrusted media (upload processors, transcoding services, media players). The condition does not depend on a non-default configuration beyond having AFGS1/film-grain-capable HEVC or VVC decoding engaged.

Impact

This is a genuine but bounded issue, best characterized as a medium-severity denial-of-service rather than a top-tier emergency. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H) scores 6.8 and tells a consistent story: impact is limited to availability (VA:H) with no confidentiality or integrity effect, exploitation requires passive user interaction (UI:P - the victim must decode an attacker-supplied file), and the vector is local (AV:L) because the malicious media must be processed on the target. CWE-369 (divide-by-zero) and the 'Denial Of Service' tag align with the described crash in generate_scaling(). The vuln.today priority is 'this_month', not act_now or emergency, which matches the risk picture. No KEV listing, no EPSS score, and no confirmed exploit code are present in the input, so there is no signal of active exploitation - the only exploitation-related artifact is the upstream fix commit and PR, which is remediation evidence, not an attack tool. The one tension worth flagging: AV:L here reflects that a file must be locally decoded, but in practice FFmpeg frequently decodes untrusted remote/user-supplied media (uploads, streams, transcoding pipelines), so the 'local' label understates reachability in server-side transcoding deployments while still being technically correct about where processing occurs.

Exploit ScenarioDerived

An attacker crafts a malicious HEVC or VVC media file containing AFGS1 film-grain scaling points with repeated x values (zero-increment) inside a T.35 SEI message. When a victim or an automated pipeline decodes this file with a vulnerable FFmpeg build, generate_scaling() divides by zero and the decoder crashes, denying service. No public exploit code is identified in the input, but the triggering condition is precisely described and the fixing commit is public.

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

Decoding a crafted HEVC or VVC file with FFmpeg through 9.0.2 can crash the process: malformed AFGS1 film-grain scaling points in a T.35 SEI message carry repeated (zero-increment) x values, and generate_scaling() then divides by zero. Affected are builds whose HEVC/VVC decoding path parses AFGS1 film-grain metadata, i.e. any deployment processing untrusted media such as upload validators, transcoding farms and media players. No privileges are required, but the victim must open or process the file (CVSS:4.0 AV:L/PR:N/UI:P, high availability-only impact); there is no confirmed active exploitation (not in CISA KEV) and no public exploit code identified at time of analysis, and the priority label places it in the this-month remediation queue rather than an emergency.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed: apply commit b8daf520dd03f6139aa053acb768f3c4594599d9 (merge request https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25572) or take an FFmpeg build that includes it, since all releases through 9.0.2 remain vulnerable, and track https://github.com/FFmpeg/FFmpeg for the tagged release that carries the change. Because exploitation requires the decoder to be handed an attacker-crafted HEVC/VVC file (AV:L, UI:P/UI:R, availability impact only), the practical containment until the fixed build is deployed is to keep decoding of untrusted media inside a disposable, restartable worker process with CPU/time limits so a division-by-zero abort costs only that worker, and to treat decoder crashes on uploads as an indicator that malformed AFGS1 film-grain metadata was submitted.

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

The flaw sits in FFmpeg's libavcodec film-grain handling for AV1-style metadata: ff_aom_parse_film_grain_sets() in libavcodec/aom_film_grain.c populates AVFilmGrainAFGS1Params from T.35 SEI messages embedded in HEVC or VVC bitstreams, then generate_scaling() in libavcodec/aom_film_grain_template.c computes segment widths from the x-coordinate of consecutive scaling points (the n9.0.2 source points at line 457 of that template). Parsing only bounds-checked each point against UINT8_MAX, so a second point repeating the previous point's x value produced a zero-increment segment and a subsequent division by zero - CWE-369. The upstream fix (commit b8daf520dd03f6139aa053acb768f3c4594599d9, PR 25572) hardens both the luma and chroma loops with i && y_value aom->y_points[i - 1][0] and i && uv_value aom->uv_points[uv][i - 1][0] so duplicate x values are rejected as malformed instead of reaching the scaler. The trigger is a specific malformed film-grain payload; no memory corruption, code execution or data exposure primitive is described.

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

A victim must decode an attacker-supplied file (AV:L, UI:R); no privileges needed (PR:N); the deterministic divide-by-zero is reliably triggerable (AC:L); impact is a decoder crash only (A:H, 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 ff_aom_parse_film_grain_sets() that fails to reject AFGS1 scaling points with repeated x values. Attackers can supply crafted HEVC or VVC files with zero-increment scaling points in T.35 SEI messages, causing generate_scaling() to divide by zero and crash the decoder.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Ubiquitous
FFmpeg is the de facto media decoding library across countless applications and pipelines
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC 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