FfmpegApplication

CVE-2026-40962

CRITICAL · 9.8 CVSS v3.1 Published 2026-04-16
Fix available
A fix is available. Upgrade to 8.1 or later.
See remediation →
100/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click Patch available

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

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

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

FFmpeg before version 8.1 contains an integer overflow vulnerability in libavformat/mov.c when processing CENC (Common Encryption) subsample data from MP4/MOV files. The overflow leads to an out-of-bounds write, allowing heap corruption that can be exploited for remote code execution via specially crafted encrypted media files.

MitigationUpgrade FFmpeg to version 8.1 or later to obtain the fix for the integer overflow vulnerability in CENC subsample parsing.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
FfmpegApplication
Affected:< 8.1

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Determine installed FFmpeg version
    Run `ffmpeg -version` and examine the version number in the output
    Affected if Version is earlier than 8.1 (such as 8.0.x, 7.x, 6.x, or older)
  2. Verify CENC-encrypted MP4/MOV file processing
    Identify if FFmpeg is used to process encrypted (DRM-protected) MP4 or MOV files. Review media processing scripts, workflows, or application logs for encrypted media handling.
    Affected if FFmpeg versions before 8.1 process CENC-encrypted MP4 or MOV files
  3. Inspect media files for CENC encryption
    Use ffprobe to examine MP4/MOV files for encryption metadata. Run `ffprobe -show_streams -i <filename>` and check for encryption, protection scheme, or DRM-related stream information.
    Affected if Media files contain CENC encryption and are processed by vulnerable FFmpeg versions

A system is affected if it runs FFmpeg versions earlier than 8.1 and processes CENC-encrypted MP4 or MOV files, which triggers the vulnerable subsample parsing code path in libavformat/mov.c.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 8.1 or later
Fixed in 8.1
Vendor patch code.ffmpeg.org →
Interim mitigation

Upgrade FFmpeg to version 8.1 or later to obtain the fix for the integer overflow vulnerability in CENC subsample parsing.

Recommended fix High confidence

FFmpeg 8.1 or later

  1. Upgrade FFmpeg to version 8.1 or later to obtain the fix for the integer overflow vulnerability in libavformat/mov.c (CENC subsample handling)
  2. Verify the installed FFmpeg version using: ffmpeg -version
  3. If running a version older than 8.1, obtain the latest release from https://ffmpeg.org/download.html or your distribution's package manager
  4. After upgrading, test that FFmpeg properly handles CENC-encrypted media files to confirm the fix is applied
Caveat FFmpeg minor version upgrades typically have minimal breaking changes, but always review release notes for any decoder/encoder behavior changes that may affect edge case media processing

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Ffmpeg Scoped from the published advisory
  • Consultation2.0 h
  • Implementation4.0 h
  • Testing8.0 h
  • Review / QA2.0 h
16.0 hours of engineering $2,680
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,288.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-40962 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-40962 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data