CVE-2026-8461 Heap out-of-bounds write via odd slice_height in FFmpeg MagicYUV decoder

High 8.8 Published Updated

Heap out-of-bounds write in FFmpeg's MagicYUV decoder allows remote code execution or denial of service via crafted media files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-8461?

CVE-2026-8461 is a high-severity memory corruption vulnerability in FFmpeg, published on 18 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

An out-of-bounds write vulnerability in FFmpeg's libavcodec library, specifically in the MagicYUV decoder, allows denial-of-service and, in some cases, can be exploited for remote code execution.

This vulnerability is associated with the file libavcodec/magicyuv.C.

This issue affects FFmpeg before version 8.1.2.

Weakness: CWE-787

Which versions are affected by CVE-2026-8461?

Linux distribution packages (14)
ffmpeg SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions3.4.2-150200.11.76.1
ffmpeg SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions3.4.2-150200.11.76.1
ffmpeg SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSAll versions3.4.2-150200.11.76.1
ffmpeg SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSSAll versions3.4.2-150200.11.76.1
ffmpeg SUSE:Linux Enterprise Module for Desktop Applications 15 SP7All versions3.4.2-150200.11.76.1
ffmpeg SUSE:Linux Enterprise Module for Package Hub 15 SP7All versions3.4.2-150200.11.76.1
ffmpeg SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions3.4.2-150200.11.76.1
ffmpeg SUSE:Linux Enterprise Server 15 SP5-LTSSAll versions3.4.2-150200.11.76.1
ffmpeg SUSE:Linux Enterprise Server 15 SP6-LTSSAll versions3.4.2-150200.11.76.1
ffmpeg SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions3.4.2-150200.11.76.1
ffmpeg SUSE:Linux Enterprise Server for SAP Applications 15 SP5All versions3.4.2-150200.11.76.1
ffmpeg SUSE:Linux Enterprise Server for SAP Applications 15 SP6All versions3.4.2-150200.11.76.1
ffmpeg SUSE:Linux Enterprise Workstation Extension 15 SP7All versions3.4.2-150200.11.76.1
ffmpeg-7 openSUSE:TumbleweedAll versions7.1.5-1.1

How do I fix CVE-2026-8461?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-8461 being exploited?

There is no known exploitation of CVE-2026-8461 in the wild and no public exploit code.

Public exploit code: 5 proofs of concept on GitHub.

Sources

Also known as DEBIAN-CVE-2026-8461, ECHO-7145-ec7d-a2dc, GHSA-qff7-4q6c-m8h6, JLSEC-2026-653, MGASA-2026-0249, MINI-77jm-4x75-3xjg and 5 more.

Is CVE-2026-8461 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free