CVE-2026-40962

FFmpeg: FFmpeg: Integer overflow and out-of-bounds write via CENC subsample data

Published Apr 16, 2026 CVSS 3.1 · 4.9 Medium EPSS < 1% KEV · Not listed
Description
FFmpeg before 8.1 has an integer overflow and resultant out-of-bounds write via CENC (Common Encryption) subsample data to libavformat/mov.c.

Analysis

AI-generated

Technical impact

An integer overflow can occur when FFmpeg processes Common Encryption (CENC) subsample data, leading to an out‑of‑bounds write in libavformat/mov.c. This overflow arises from insufficient bounds checking during media parsing and can corrupt stack or heap memory, potentially causing an application crash.

Affected Systems

All releases of FFmpeg before version 8.1 are affected. Any deployment that processes media files containing CENC subsample information on those versions is susceptible.

Risk and Exploitability

The CVSS score of 4.9 indicates moderate severity. The EPSS score is less than 1%, and the vulnerability is not listed in the CISA KEV catalog. An attacker would need to supply a malicious media file with crafted CENC data to trigger the overflow. If an application uses FFmpeg to process untrusted media or accepts media from external sources, the risk of exploitation is higher. No widespread exploitation has been reported. Updating the library is the recommended mitigation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to FFmpeg 8.1 or later to apply the integer‑overflow fix.
  • Disable or restrict CENC parsing in FFmpeg if the feature is not required, preventing malformed CENC data from being processed.
  • Run FFmpeg in a sandboxed or low‑privilege environment to limit the impact of any potential memory corruption.

Generated by OpenCVE AI on April 17, 2026 at 05:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8469-1 FFmpeg vulnerabilities
History
Type Values Removed Values Added
Title FFmpeg: FFmpeg: Integer overflow and out-of-bounds write via CENC subsample data
Weaknesses CWE-787
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description FFmpeg before 8.1 has an integer overflow and resultant out-of-bounds write via CENC (Common Encryption) subsample data to libavformat/mov.c.
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-190
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
References
Metrics cvssV3_1

{'score': 4.9, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Apr 16, 2026, 12:31 PM
Reserved
Apr 16, 2026, 1:33 AM
Status
Analyzed
Published
Apr 16, 2026, 2:16 AM
Modified
Jun 17, 2026, 10:45 AM
Severity
Moderate
Public date
Apr 16, 2026, 1:33 AM