Integer Overflow or Wraparound Affecting ffmpeg package, versions [,8.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0% (1st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Integer Overflow or Wraparound vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-FFMPEG-16082555
  • published16 Apr 2026
  • disclosed16 Apr 2026
  • creditQuang Luong

Introduced: 16 Apr 2026

NewCVE-2026-40962  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade ffmpeg to version 8.1 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound in the cenc_scheme_decrypt, cbc1_scheme_decrypt, cens_scheme_decrypt, and cbcs_scheme_decrypt paths in libavformat/mov.c. An attacker can trigger out-of-bounds subsample size validation by supplying a crafted MOV/MP4 file with large CENC subsample length fields. This results in invalid memory access and a crash when FFmpeg processes the file.

CVSS Base Scores

version 4.0
version 3.1