CVE-2026-137907: FFmpeg 3.0 before 8.1.3 Heap Buffer Overflow via boxblur Filter
FFmpeg 3.0 before 8.1.3 contains a heap buffer overflow vulnerability in libavfilter/vfboxblur.c because queryformats() accepts pixel formats deeper than 16 bits while the blur temporary buffers hold only 2 bytes per pixel. Attackers can supply crafted 32-bit float media, such as PFM or OpenEXR images, that when processed by the boxblur filter overflow the temporary buffers, crashing applications or possibly executing code.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger the overflow?
An application must process attacker-controlled 32-bit floating-point media through FFmpeg's boxblur filter. Examples of relevant input formats include PFM and OpenEXR images.
Are installations using the boxblur filter with ordinary lower-depth pixel formats affected?
The described flaw occurs because boxblur accepts pixel formats deeper than 16 bits while its temporary buffers allocate only 2 bytes per pixel. The provided information specifically identifies 32-bit float media as the triggering input class.
What is the impact if exploitation succeeds?
Processing the crafted media can overflow heap-based temporary buffers. This can crash the application and may permit code execution.
Which versions need remediation?
FFmpeg versions from 3.0 through versions before 8.1.3 are identified as affected. Updating to 8.1.3 or later addresses the stated affected-version range.