Cloudanix VulnDB

CVE-2026-65705

High · 7.8

CVSS

7.8

EPSS

0.2%

Published

Jul 23, 2026

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in a popular video processing tool can let a specially made video file crash the program or potentially take control of the computer when certain filter settings are used.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Moderate
Impact
Full Compromise
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Out-of-bounds write in the vf_floodfill filter's config_input and filter_frame functions that overflows a heap-allocated traversal stack when a larger frame arrives after allocation based on initial dimensions under -reinit_filter 0.

Why it matters to the business

Media processing pipelines using FFmpeg may experience crashes or, in favorable heap conditions, arbitrary code execution, disrupting video workflows and potentially allowing attackers to compromise systems that handle untrusted streams.

How an attack unfolds

An attacker crafts a video stream whose frame dimensions increase after the initial frame, invokes the floodfill filter with reinitialization disabled, triggers the oversized neighbor pushes in filter_frame, and achieves heap corruption that can lead to a crash or code execution depending on memory layout.

How to fix it

Upgrade FFmpeg to a version newer than 8.1.2 that contains the fix for the vf_floodfill out-of-bounds write. If immediate upgrade is not possible, avoid the floodfill filter or ensure -reinit_filter is left at its default enabled state when processing untrusted streams.

How to confirm the fix worked

Confirm the installed FFmpeg version is newer than 8.1.2, review command lines for absence of -reinit_filter 0 combined with vf_floodfill, and test with sample streams that change frame size mid-stream to verify absence of crashes or corruption.

Typical attack path

  1. Locate or control a process that invokes FFmpeg with the vf_floodfill filter and -reinit_filter 0
  2. Supply a dynamically sized video stream that begins with small dimensions and later presents larger frames
  3. Trigger filtergraph processing so that config_input allocates the points stack from the first frame size
  4. Force filter_frame to perform flood-fill operations that write beyond the original allocation boundary
  5. Leverage resulting heap corruption for denial of service or, when layout permits, code execution

How to detect it

Search application and system logs for FFmpeg invocations containing vf_floodfill together with -reinit_filter 0, monitor for unexpected crashes or heap-related error messages during video filter processing, and inspect core dumps or sanitizer output for out-of-bounds writes in the floodfill code path.

  • vf_floodfill
  • -reinit_filter 0
  • filter_frame.*flood-fill
  • config_input.*points traversal stack

What your security team should do

  • Prioritize patching FFmpeg instances that process untrusted video within 30 days given the memory corruption impact
  • Audit all media processing scripts and services for use of vf_floodfill with -reinit_filter 0 and remove or replace the combination
  • Add FFmpeg version checks to deployment pipelines and block builds that include vulnerable releases
  • Monitor for process crashes or segmentation faults in FFmpeg workers handling video filters

The record

FFmpeg versions 3.4 through 8.1.2 contain an out-of-bounds write vulnerability in the vf_floodfill video filter that allows attackers to corrupt heap memory by supplying a dynamically sized video stream with filtergraph reinitialization disabled via -reinit_filter 0. When config_input() allocates the points traversal stack based on initial frame dimensions and a subsequent larger frame is processed, filter_frame() performs flood-fill neighbor pushes beyond the original allocation boundary, resulting in heap corruption and process crash with potential for code execution depending on heap layout and process hardening.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities