Integer Overflow Vulnerability in FFmpeg: Potential Crashes Due to Insufficient Parameter Validation

ffmpeg Updated 02 Oct 2025

Summary

29/11/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-35369: In FFmpeg version n6.1.1, specifically within the avcodec/speexdec.c module, a potential security vulnerability exists due to insufficient validation of certain parameters when parsing Speex codec extradata. Affects ffmpeg versions < 7:7.0.1-3. Fixed in 7:7.0.1-3. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

FFmpeg is a widely used open-source software suite for handling multimedia data, including audio and video processing. It provides libraries and programs for encoding, decoding, transcoding, muxing, demuxing, streaming, filtering, and playing almost anything that humans and machines have created. The package is known for its versatility and efficiency in multimedia handling. However, it is susceptible to vulnerabilities that can compromise its functionality and security, such as the one identified in this report.

Vulnerability Detail

In FFmpeg version n6.1.1, a security vulnerability exists within the avcodec/speexdec.c module due to insufficient validation of parameters when parsing Speex codec extradata. This flaw can lead to integer overflow conditions, which may result in undefined behavior or crashes during the decoding process. The vulnerability is critical as it can be exploited by malicious input, potentially allowing attackers to disrupt service or execute arbitrary code.

How To Fix

Minimum fixed version

7:7.0.1-3

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 using the Speex codec until the package is updated. This can help mitigate the risk of exploitation until the vulnerability is patched.

Conclusion

The identified integer overflow vulnerability in FFmpeg poses a significant risk due to its potential to cause crashes and undefined behavior. Users are strongly encouraged to update to the patched version 7:7.0.1-3 to mitigate this risk. Until the update can be applied, avoiding the use of the Speex codec is recommended.

See every vulnerability recorded for ffmpeg →

Share this vulnerability

FAQ

The vulnerability is an integer overflow issue caused by insufficient validation of parameters when parsing Speex codec extradata.

Exploitation of this vulnerability can lead to undefined behavior or crashes during the decoding process, potentially allowing attackers to disrupt service.

Yes, the patched version of FFmpeg is 7:7.0.1-3. Users are advised to update to this version.

As a temporary measure, avoid using the Speex codec until you can update to the patched version.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

Related vulnerabilities

Recent vulnerabilities recorded for ffmpeg.

How To Fix

Minimum fixed version

7:7.0.1-3

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