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

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

- **Severity:** High 8.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`)
- **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:** Yes
- **Published:** 18 Jun 2026
- **Updated:** 23 Jul 2026
- **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, MINI-v279-wmv6-33pg, OESA-2026-2697, SUSE-SU-2026:3632-1, UBUNTU-CVE-2026-8461, openSUSE-SU-2026:11384-1

## 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 (Out-of-bounds Write)

## Which versions are affected by CVE-2026-8461?


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `ffmpeg` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 3.4.2-150200.11.76.1 |
| `ffmpeg` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 3.4.2-150200.11.76.1 |
| `ffmpeg` | SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 3.4.2-150200.11.76.1 |
| `ffmpeg` | SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | All versions | 3.4.2-150200.11.76.1 |
| `ffmpeg` | SUSE:Linux Enterprise Module for Desktop Applications 15 SP7 | All versions | 3.4.2-150200.11.76.1 |
| `ffmpeg` | SUSE:Linux Enterprise Module for Package Hub 15 SP7 | All versions | 3.4.2-150200.11.76.1 |
| `ffmpeg` | SUSE:Linux Enterprise Server 15 SP4-LTSS | All versions | 3.4.2-150200.11.76.1 |
| `ffmpeg` | SUSE:Linux Enterprise Server 15 SP5-LTSS | All versions | 3.4.2-150200.11.76.1 |
| `ffmpeg` | SUSE:Linux Enterprise Server 15 SP6-LTSS | All versions | 3.4.2-150200.11.76.1 |
| `ffmpeg` | SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | All versions | 3.4.2-150200.11.76.1 |
| `ffmpeg` | SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | All versions | 3.4.2-150200.11.76.1 |
| `ffmpeg` | SUSE:Linux Enterprise Server for SAP Applications 15 SP6 | All versions | 3.4.2-150200.11.76.1 |
| `ffmpeg` | SUSE:Linux Enterprise Workstation Extension 15 SP7 | All versions | 3.4.2-150200.11.76.1 |
| `ffmpeg-7` | openSUSE:Tumbleweed | All versions | 7.1.5-1.1 |

## How do I fix CVE-2026-8461?

Upgrade to a fixed version.

## 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:

- https://github.com/Y5neKO/CVE-2026-8461-EXP (github_poc): https://github.com/Y5neKO/CVE-2026-8461-EXP
- https://github.com/anyanything/CVE-2026-8461-PoC (github_poc): https://github.com/anyanything/CVE-2026-8461-PoC
- CVE-2026-8461 (github_poc): https://github.com/0xredash/CVE-2026-8461
-  CVE-2026-8461 - Draft (github_poc): https://github.com/HORKimhab/CVE-2026-8461
- A lab setup to test cve-2026-8461 (github_poc): https://github.com/se1ims/PixelSmash

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-8461 and fix it if it is affected.

What it is: 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.
Exploitation: There is no known exploitation of CVE-2026-8461 in the wild and no public exploit code.

Affected product: FFmpeg. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-8461/ (Markdown: https://insights.sbomify.com/CVE-2026-8461/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-8461
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-8461
- OSV: https://osv.dev/vulnerability/CVE-2026-8461

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-8461/
Summaries are generated and may contain mistakes; the official description above is the record.
