Skip to content
Threat Feed
high advisory

FFmpeg: Heap buffer overflow in libavcodec (CVE-2026-125260)

FFmpeg versions through 9.0.2 are vulnerable to a heap buffer overflow in libavcodec/exrenc.c that can cause memory corruption and application crashes during OpenEXR RLE encoding of frames exceeding initial height.

CVE search metadata

CVE search record: CVE-2026-125260. Severity: high. CVSS: 7.0. KEV: no. Product: FFmpeg (<= 9.0.2). Brief: FFmpeg: Heap buffer overflow in libavcodec (CVE-2026-125260). Brief link: https://feed.craftedsignal.io/briefs/2026-11-ffmpeg-heap-overflow-3f17725c/

Triage facts

Revision 1
Applicability
FFmpeg (<= 9.0.2)
Evidence
Unknown
Severity
High
Action
Elevated
Sources
1 public source
Freshness
Revision 1Nov 9, 21:58 UTC
Vulnerabilities
1 CVE
Source quality
A2Roughly even chance

FFmpeg versions 9.0.2 and earlier contain a heap buffer overflow vulnerability in the file libavcodec/exrenc.c. The flaw resides in the encode_scanline_rle() function. An attacker can trigger this vulnerability by providing a crafted input file that, when transcoded to OpenEXR with RLE compression, contains frame dimensions that exceed the encoder's initially configured height. This condition leads to an out-of-bounds write beyond the scanline array, resulting in heap memory corruption and application crashes.

Impact

The vulnerability allows an attacker to cause an application crash. While the source confirms heap memory corruption, it does not explicitly confirm remote code execution (RCE). The impact is primarily denial of service for any application utilizing FFmpeg to transcode media inputs.

Recommendation

  • Identify all systems and applications within the environment that utilize FFmpeg libraries.
  • Prioritize patching FFmpeg to a version beyond 9.0.2 once a secure version is made available by the maintainers.
  • Implement sandboxing or isolation for media processing services that handle untrusted, user-supplied files to contain potential crashes and exploitation attempts.

Immediate actions

Inventory applications using FFmpeg library versions 9.0.2 or earlier

IT Operations 48h

Threat Hunt

Hunt for application crashes involving processes that link against libavcodec

medium medium confidence hunt now

Data: System error logs, Application crash dumps, Process exit codes

Mitigations

Upgrade FFmpeg to the latest patched version when available

immediate IT Operations

CVE-2026-125260