FFmpeg fixes a buffer overflow in its boxblur filter that could allow code execution
A new high-severity flaw, CVE-2026-137907, affects FFmpeg from version 3.0 up to, but not including, 8.1.3: a crafted image processed with the boxblur filter can crash the application or possibly execute code. It follows the ten FFmpeg vulnerabilities published on 24 November.
What happened
This adds to the ten vulnerabilities in FFmpeg, the multimedia processing tools and libraries, that we covered on 24 November. On 27 November NVD, the US government vulnerability database, published CVE-2026-137907, rated CVSS 8.5 (high). It is a heap buffer overflow in libavfilter/vf_boxblur.c, the code behind boxblur, a blur filter.
The root cause lies in the query_formats() function, which decides which pixel formats the filter accepts: it allowed formats deeper than 16 bits per component, while the blur's temporary buffers only hold 2 bytes per pixel. An attacker can supply images with 32-bit floating-point data, such as PFM or OpenEXR, which overflow those buffers when run through the filter. The outcome is an application crash or, possibly, arbitrary code execution.
According to the pull request on FFmpeg's official repository, the flaw was found by researchers at Aisle Research. The fix makes the filter reject formats deeper than 16 bits and adds an internal sanity check; it was merged into the main branch on 2 July 2026 (commit 0dac41d2e5).
Who is affected
According to NVD, FFmpeg versions from 3.0 up to, but not including, 8.1.3 are affected; the vendor's pull request does not list versions. The risk arises when the boxblur filter is applied to untrusted content. The CVSS vector describes a local attack requiring no prior privileges, but a user or process must handle the crafted file.
- Services that process user-uploaded images or video with FFmpeg and the boxblur filter.
- Applications and products that embed FFmpeg libraries (libavfilter) in affected versions.
- Workflows that handle PFM or OpenEXR images.
Exploitation status
The flaw is not listed in the KEV catalogue of known exploited vulnerabilities maintained by CISA, the US cybersecurity agency. FIRST, the body that calculates EPSS scores, puts the probability of exploitation in the next month at 0.2%, so it is currently considered unlikely. Even so, proof-of-concept code has been posted on GitHub; it has not been verified, but its availability raises the risk and the urgency of updating.
What to do
We recommend the following steps:
- Update FFmpeg to version 8.1.3 or later, the first outside the affected range according to NVD; if you build from source, include commit 0dac41d2e5.
- Inventory applications, containers and products that bundle FFmpeg and ask their vendors for updates.
- In the meantime, avoid applying boxblur to untrusted files, especially PFM and OpenEXR, or restrict the input formats you accept.
- Run multimedia processing of external content in a sandbox with minimal privileges.
- Make sure the fixes for the ten vulnerabilities published on 24 November have also been applied.
Vulnerabilities (1)
| CVE | Severity | Active exploitation | Published | NVD status |
|---|---|---|---|---|
| CVE-2026-137907 | High (8.5) | — | 11/27/2026 | Analyzed |
Written automatically from NVD, CISA KEV and vendor advisory data. Always check affected versions and patches in the vendor's official advisory before acting.