Buffer Overflow Vulnerability in Ffmpeg: A Threat to System Integrity

ffmpeg Updated 02 Oct 2025

Summary

19/04/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2023-51797: Buffer Overflow vulnerability in Ffmpeg v.N113007-g8d24a28d06 allows a local attacker to execute arbitrary code via the libavfilter/avf_showwaves.c:722:24 in showwaves_filter_frame. 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 multimedia framework that enables users to record, convert, and stream audio and video. It supports a vast array of codecs and formats, making it a critical component for media processing applications. However, the software is not immune to vulnerabilities, such as the recently identified buffer overflow issue, which poses significant risks to system security.

Vulnerability Detail

The vulnerability identified as DEBIAN-CVE-2023-51797 is a buffer overflow in Ffmpeg, specifically located in the showwaves_filter_frame function within the libavfilter/avf_showwaves.c file. This flaw allows a local attacker to execute arbitrary code, potentially leading to unauthorized access and control over the affected system. The vulnerability was introduced in version 0 and remains unaddressed in earlier releases, making it crucial for users to update to the fixed version to mitigate risks.

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 measure, users are advised to restrict access to the Ffmpeg application or limit its execution to trusted users only. This can help mitigate the risk of exploitation until the package is updated.

Conclusion

The buffer overflow vulnerability in Ffmpeg poses a significant risk to users, allowing potential attackers to execute arbitrary code. It is essential to update to the patched version 7:7.0.1-3 to safeguard your system. Additionally, utilizing tools like Vulert can help monitor for vulnerabilities in your applications effectively.

See every vulnerability recorded for ffmpeg →

Share this vulnerability

FAQ

A buffer overflow occurs when a program writes more data to a buffer than it can hold, potentially allowing attackers to overwrite adjacent memory and execute arbitrary code.

You can use Vulert, which monitors open-source vulnerabilities in your software. By uploading a manifest file like package-lock.json to the Vulert playground, you can check for vulnerabilities without needing to install any software.

If exploited, this vulnerability could allow an attacker to execute arbitrary code on the affected system, leading to unauthorized access, data breaches, or system compromise.

Yes, users should update to Ffmpeg version 7:7.0.1-3 or later, which contains the necessary patches to address this vulnerability.

If immediate updates are not possible, consider restricting access to the Ffmpeg application and monitoring for any suspicious activity on your system.

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