Integer Overflow Vulnerability in FFmpeg: Denial of Service Risk

ffmpeg Updated 02 Oct 2025

Summary

27/01/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-22861: Integer overflow vulnerability in FFmpeg before n6.1, allows attackers to cause a denial of service (DoS) via the avcodec/osq module. Affects ffmpeg versions < 7:6.1-1. Fixed in 7:6.1-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

FFmpeg is a powerful open-source multimedia framework that allows users to record, convert, and stream audio and video. It is widely used for its versatility and support for numerous formats. However, like many complex software systems, FFmpeg is susceptible to vulnerabilities that can be exploited by attackers. The specific vulnerability in question is an integer overflow that can lead to a denial of service (DoS) attack, affecting the stability and availability of applications relying on FFmpeg.

Vulnerability Detail

The integer overflow vulnerability in FFmpeg, present in versions before 6.1, originates from the avcodec/osq module. This flaw allows attackers to craft malicious inputs that, when processed by FFmpeg, can cause the application to crash or become unresponsive, resulting in a denial of service. The vulnerability is critical as it can be exploited remotely, potentially affecting a wide range of applications that utilize FFmpeg for media processing.

How To Fix

Minimum fixed version

7:6.1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade ffmpeg

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid processing untrusted or unknown media files with FFmpeg until the update is applied. Additionally, implementing input validation on media files before processing can help mitigate the risk.

Conclusion

The integer overflow vulnerability in FFmpeg poses a significant risk of denial of service attacks. Users are strongly advised to update to the patched version 7:6.1-1 or later to mitigate this risk. Until the update is applied, users should exercise caution when processing media files and consider implementing workarounds.

See every vulnerability recorded for ffmpeg →

Share this vulnerability

FAQ

The vulnerability is an integer overflow that can lead to a denial of service (DoS) when processing certain inputs in FFmpeg.

FFmpeg versions prior to 6.1 are affected by this vulnerability.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected by this vulnerability.

If an immediate update is not possible, avoid processing untrusted media files and implement input validation as a temporary measure.

Yes, Vulert can automate vulnerability checks using a manifest file like package-lock.json, allowing for real-time monitoring without code access.

Related vulnerabilities

Recent vulnerabilities recorded for ffmpeg.

How To Fix

Minimum fixed version

7:6.1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade ffmpeg

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback