Skip to main content

FFmpeg CVE-2026-38345

| EUVDEUVD-2026-67318 MEDIUM
Divide By Zero (CWE-369)
2026-08-27 mitre GHSA-rgh2-m3vh-23hp
6.5
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Craft malformed media file with zero-divisor parameters
  2. Delivery
    Submit file to FFmpeg-based application
  3. Exploit
    Application routes file to libswscale
  4. Execution
    ff_sws_init_single_context hits divide-by-zero
  5. Impact
    FFmpeg process crashes (DoS)

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 delivering a crafted media file to an application that passes it through FFmpeg's libswscale library, specifically into ff_sws_init_single_context with parameters that produce a zero-valued divisor. The CVSS vector includes UI:R, implying user interaction such as opening or submitting a file; however, server-side transcoding or thumbnail generation pipelines that automatically process submitted content reduce this requirement to simply uploading the file. No authentication is required at the FFmpeg library layer (PR:N), though the host application may impose its own access controls. Exploitation is limited to denial of service - no memory corruption, code execution, or data disclosure is associated with this divide-by-zero. The vulnerability is confirmed in build N-122528-gdd2976b9e1; applicability to stable release branches is not confirmed from available data.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H scores 6.5, reflecting a network-deliverable, unauthenticated DoS requiring user interaction - for example, opening or submitting a crafted media file. Real-world risk is moderate-to-low: EPSS at 0.15% (4th percentile) indicates very little observed exploitation activity, the vulnerability is absent from CISA KEV, and no public exploit code has been identified. The primary concern is crash-based availability loss in applications that process untrusted media, particularly automated server-side transcoding pipelines where the UI:R metric may overstate the actual interaction barrier - content submitted to a media service is processed without explicit end-user interaction. No confidentiality or integrity impact exists. Risk is bounded to availability; repeated crashes in unguarded pipelines could constitute sustained service disruption.

Exploit ScenarioDerived

An attacker crafts a malformed media file with parameters designed to produce a zero divisor during libswscale context initialization and uploads it to a web application that performs server-side video transcoding or thumbnail generation using FFmpeg. When the application automatically passes the file to FFmpeg for processing, ff_sws_init_single_context encounters the crafted parameters and divides by zero, crashing the FFmpeg worker process. If no supervisor or rate-limiting is in place, repeated submission of the crafted file could sustain a denial-of-service against the transcoding service.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 02, 2026

Division-by-zero in FFmpeg's libswscale library allows remote attackers to crash the process by supplying a crafted media file that triggers an unhandled zero-divisor during scaling context initialization. The fault occurs in ff_sws_init_single_context within /libswscale/utils.c when malformed input parameters produce a zero-valued denominator, resulting in a process crash and denial of service. No active exploitation has been confirmed, and EPSS at 0.15% (4th percentile) indicates negligible observed exploitation activity.

RemediationAI

Monitor the upstream FFmpeg issue tracker at https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/21585 for the authoritative patch and any associated tagged release. An exact patched release version is not confirmed from available data - do not rely solely on the NVD or VulDB entries until a fixed version is published. As compensating controls: restrict FFmpeg-based services from accepting untrusted or user-supplied media directly; pre-screen inputs with a metadata validator before routing to libswscale-dependent code paths. In automated transcoding pipelines, sandbox FFmpeg worker processes using seccomp filters, containers, or low-privilege service accounts so that a crash does not cascade into broader service disruption. Implement process supervisor restart policies (e.g., systemd Restart=on-failure) to restore availability after a crash while a permanent fix is applied.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FFmpeg is an open-source multimedia framework underpinning video encoding, decoding, transcoding, muxing, and streaming across countless applications and services. The affected component is libswscale, FFmpeg's software pixel-format conversion and video-scaling library, responsible for translating between colorspaces and scaling video frames. The ff_sws_init_single_context function initializes per-context scaling parameters; CWE-369 (Divide-by-Zero) arises when crafted input produces a zero-valued denominator during initialization arithmetic, causing an unhandled floating-point or integer exception that terminates the process. The specific affected build is identified as development snapshot N-122528-gdd2976b9e1 (commit gdd2976b9e1), referenced in the FFmpeg issue tracker. The CPE provided (cpe:2.3:a:n/a:n/a) is a placeholder and does not accurately identify the product.

Know when the next one hits your stack

  • 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 (mitre) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

Network-delivered crafted file requiring passive user action (UI:R); impact is crash-only with no confidentiality or integrity consequence.

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

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

3
CVSS changed
Sep 02, 2026 - 19:22 NVD
6.5 (MEDIUM)
CVE Published
Aug 27, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)
CVE Published
Aug 27, 2026 - 00:00 cve.org
MEDIUM 6.5

DescriptionCVE.org

A Division-by-Zero vulnerability in the ff_sws_init_single_context function (/libswscale/utils.c) of FFmpeg N-122528-gdd2976b9e1 allows attackers to cause a Denial of Service (DoS) via a crafted input.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
High
widely embedded in video/audio processing across web services and platforms
Data Quality
5 sources
Confidence: Medium

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.1%
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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
High

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP7 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy