Skip to main content

Ffmpeg EUVDEUVD-2026-23153

| CVE-2026-40962 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-04-16 mitre
4.9
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Attacker crafts malformed MP4 file
  2. Delivery
    Places file on local system or shares via email/messaging
  3. Exploit
    User/service opens file with FFmpeg
  4. Install
    Parser processes CENC subsample data
  5. C2
    Integer overflow in offset calculation
  6. Execute
    Out-of-bounds heap/stack write
  7. Impact
    Memory corruption or information disclosure

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the following specific, concrete conditions: (1) FFmpeg version before 8.1 must be installed and used to process media files; (2) the attacker must craft a specially malformed MP4 file with CENC subsample metadata that produces integer overflow in the offset calculation (the specific subsample count, size fields, or sample size values must combine to wrap an integer calculation in mov.c); (3) a local user or process must invoke FFmpeg to parse or process this malicious MP4 file (network remote exploitation is not possible-the attacker must have local file access or convince a user to process the file); (4) the system must allow the vulnerable FFmpeg process to write to memory regions that cause observable or exploitable corruption (ASLR disabled or weak ASLR increases exploitability). Limiting factors: this is strictly local attack vector (not network), high attack complexity means the malformed CENC structure must be precisely crafted to trigger integer overflow, and the attacker must gain local file system access or social engineer a user to process the malicious file. Default FFmpeg configurations are potentially exploitable if the file can be placed on the local system.

Impact

The CVSS vector (AV:L/AC:H/PR:N/UI:N) indicates local attack vector with high complexity and no privilege requirement, meaning the attacker must have local file system access and the system must be in a non-default state (high complexity factor). The low CVSS base score of 4.9 reflects this local-only scope combined with high attack complexity. EPSS data is unavailable for independent real-world exploitation probability assessment. No CISA KEV listing and no public exploit code identified suggest this is not currently under active exploitation or widely targeted. The practical risk depends critically on deployment context: users who process only trusted media from known sources face minimal risk, while media processing services, video editors, and systems handling user-uploaded content face moderate risk of denial of service or potential information disclosure. The high complexity requirement (AC:H) is a significant limiting factor-the attacker must craft a very specific malformed CENC structure to trigger the integer overflow, which reduces likelihood of accidental or widespread exploitation.

Exploit ScenarioDerived

An attacker crafts a malformed MP4 file with specially designed CENC subsample metadata that triggers integer overflow in the offset calculation within libavformat/mov.c. When a local user or automated media processing service opens this file with FFmpeg (e.g., to transcode, analyze, or extract metadata), the parser processes the subsample data, the integer overflow wraps the offset calculation to a small value, and the subsequent write operation corrupts memory at an attacker-controlled location relative to heap structures. This could result in information disclosure if heap data is leaked, or denial of service if critical structures are overwritten. Exploitation requires the attacker to have write access to a file system location where the target FFmpeg process can read it, and non-default system configuration (high complexity factor).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 16, 2026

Integer overflow in FFmpeg's CENC subsample data parsing (libavformat/mov.c) before version 8.1 enables out-of-bounds memory writes on local systems processing specially crafted MP4 files. The vulnerability requires attacker-controlled media file input and non-default system configuration, limiting exploitation to local contexts; no active exploitation or public exploit code has been identified. With a CVSS score of 4.9 and low attack complexity requirement, this represents a moderate local integrity and confidentiality risk primarily affecting users who process untrusted video files from untrusted sources.

RemediationAI

Upgrade FFmpeg to version 8.1 or later to obtain the upstream fix. The patch is available via the FFmpeg pull request #22348 (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22348). For systems unable to immediately upgrade, apply defense-in-depth controls: restrict FFmpeg processing to media files from trusted sources only; disable or sandbox FFmpeg processing of user-uploaded content; run FFmpeg in a containerized environment with limited file system and memory access; enable address space layout randomization (ASLR) and DEP/NX protection on the system to reduce exploitability of memory corruption. Organizations using FFmpeg in production should prioritize upgrading, as the fix is straightforward and version 8.1 has been available. No known workarounds bypass the vulnerability without upgrading or restricting input sources.

Affected VersionsENISA

FFmpeg 4.1 <8.1

Affected Packages

euvd ffmpeg fix: 8.1

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 mov.c demultiplexer parses ISO Base Media File Format (MP4/MOV) containers, including CENC (Common Encryption) subsample metadata that defines encrypted portions of samples. The vulnerability stems from insufficient bounds checking when calculating buffer offsets using subsample data, allowing an integer overflow condition (CWE-190) that wraps the offset calculation and triggers an out-of-bounds write to heap or stack memory. The affected component is part of libavformat, FFmpeg's container parsing library, specifically the CENC subsample processing logic. CPE data confirms all FFmpeg versions before 8.1 are vulnerable across all platforms where FFmpeg is compiled.

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

NVD PRIMARY 4.9 MEDIUM
AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
SUSE MEDIUM
Red Hat 4.8 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

3
Patch released
Apr 20, 2026 - 19:54 nvd
Patch available
Patch available
Apr 16, 2026 - 05:29 EUVD
8.1
CVE Published
Apr 16, 2026 - 01:33 nvd
MEDIUM 4.9

DescriptionCVE.org

FFmpeg before 8.1 has an integer overflow and resultant out-of-bounds write via CENC (Common Encryption) subsample data to libavformat/mov.c.

Threat Intelligence Overview

EPSS Score
0.0%
Top 100% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

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.0%
Patch available Yes
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

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

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.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

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

CVE-2021-38090 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter16_roberts in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows atta

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP7 Fixed

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