CVE-2026-65705

FFmpeg · FFmpeg

FFmpeg versions 3.4 through 8.1.2 are vulnerable to an out-of-bounds write and incorrect buffer size calculation in the vf_floodfill filter, potentially leading to code execution.

Executive summary

A critical vulnerability in the FFmpeg vf_floodfill filter allows for memory corruption, posing a high risk of arbitrary code execution for applications using affected versions.

Vulnerability

The vulnerability stems from an incorrect calculation of buffer size leading to an out-of-bounds write within the vf_floodfill filter. This requires a user to process a malicious file, and the attacker does not need to be authenticated to the system to trigger the flaw.

Business impact

By exploiting this memory corruption vulnerability, an attacker could execute arbitrary code with the privileges of the user running the FFmpeg process. With a CVSS score of 7.8, this represents a high-severity threat that could lead to full system compromise or unauthorized access to sensitive application data.

Remediation

Immediate Action: Upgrade to the version containing the fix implemented in commit f186c50cf53aec20e9a29059cb22ca3f2d59201c.

Proactive Monitoring: Review application logs for unexpected crashes during media filtering or transcoding tasks which may indicate exploitation attempts.

Compensating Controls: Employ memory protection mechanisms, such as Address Space Layout Randomization (ASLR) and Data Execution Prevention (DEP), to increase the difficulty of successful exploitation.

Exploitation status

Public Exploit Available: false

Analyst recommendation

Given the potential for code execution, it is imperative that organizations audit their software dependencies for the affected FFmpeg versions. Applying the vendor-provided patch is the most effective way to eliminate this risk and ensure the integrity of the media processing pipeline.