CVE-2026-8461
Ffmpeg vulnerability analysis and mitigation

Overview

CVE-2026-8461, dubbed PixelSmash, is an out-of-bounds write vulnerability in FFmpeg's libavcodec library, specifically within the MagicYUV decoder (libavcodec/magicyuv.c). It allows unauthenticated remote attackers to cause denial-of-service or, in some cases, achieve remote code execution by tricking a user into opening a specially crafted media file. All FFmpeg versions before 8.1.2 are affected; Red Hat products including Red Hat AI Inference Server, RHEL AI 3, and Red Hat OpenShift AI (RHOAI) are also listed as affected. The vulnerability was published on June 18, 2026, with a CVSS v3.1 base score of 8.8 (High) (GitHub Advisory, Red Hat CVE).

Technical details

The root cause is an out-of-bounds write (CWE-787) in the MagicYUV video decoder within FFmpeg's libavcodec/magicyuv.c. When processing a maliciously crafted MagicYUV-encoded media file, the decoder writes data beyond the bounds of an allocated buffer — described by some researchers as a heap overflow — due to insufficient bounds checking during frame decoding. Exploitation requires user interaction (e.g., opening or playing a crafted AVI or video file) but requires no authentication or special privileges from the attacker. The upstream fix is tracked in FFmpeg pull request #23159 (GitHub Advisory, JFrog Blog, Red Hat Bugzilla).

Impact

Successful exploitation can result in arbitrary code execution with the privileges of the FFmpeg process, or a denial-of-service crash of the affected application. The vulnerability affects any software that uses FFmpeg for media processing — including media servers, NAS appliances, video players (e.g., Kodi, Jellyfin), transcoding pipelines, and cloud AI inference platforms — significantly broadening the attack surface. Confidentiality, integrity, and availability are all rated High, meaning a successful attack could lead to full compromise of the host process, data exfiltration, or service disruption (Red Hat CVE, SecurityWeek, JFrog Blog).

Exploitation steps

  1. Craft a malicious media file: Use the public PoC script (exploit_cve_2026_8461.py) or manually craft a MagicYUV-encoded AVI file with malformed frame data designed to trigger an out-of-bounds write in libavcodec/magicyuv.c.
  2. Deliver the file to the target: Distribute the crafted file via email attachment, file-sharing platform, malicious website, or by uploading it to a media server that automatically processes user-submitted content.
  3. Trigger user interaction: Induce the victim to open or play the file using an FFmpeg-based application (e.g., Jellyfin, Kodi, VLC with FFmpeg backend, or a media transcoding service).
  4. Trigger the out-of-bounds write: When FFmpeg's MagicYUV decoder processes the malformed file, it writes data beyond the allocated buffer boundary, corrupting heap memory.
  5. Achieve code execution or DoS: Depending on heap layout and exploit reliability, the attacker may achieve arbitrary code execution with the privileges of the FFmpeg process, or at minimum crash the application, causing denial of service (GitHub PoC, JFrog Blog).

Indicators of compromise

  • File System: Presence of unexpected AVI or video files with MagicYUV encoding in upload directories, temp folders, or media libraries; files named baseline.avi or similarly generic names in unusual locations.
  • Process: FFmpeg or media server processes (e.g., ffmpeg, jellyfin, kodi) crashing unexpectedly or spawning anomalous child processes (e.g., shells, curl, wget).
  • Logs: Application crash logs or core dumps associated with libavcodec or magicyuv decoder; segmentation faults or heap corruption errors in FFmpeg stderr output.
  • Network: Outbound connections from media server processes to unexpected external IP addresses following media file processing; unusual data exfiltration patterns from media server hosts.

Mitigation and workarounds

The primary remediation is to upgrade FFmpeg to version 8.1.2 or later, which contains the fix for the MagicYUV decoder out-of-bounds write (GitHub Advisory, JFrog Blog). Downstream consumers such as Jellyfin, Kodi, Nextcloud, Immich, OBS Studio, and Mastodon should update to versions that bundle the patched FFmpeg. Red Hat has noted that no practical workaround is available for affected products (Red Hat AI Inference Server, RHEL AI 3, RHOAI) and recommends patching (Red Hat CVE). As interim mitigations, organizations should restrict processing of untrusted video files, sandbox FFmpeg processes, and monitor for unexpected crashes or process behavior.

Community reactions

JFrog, the CVE assigner, published a detailed technical blog post naming the vulnerability PixelSmash and describing how media files can be weaponized (JFrog Blog). The vulnerability received broad coverage from security outlets including BleepingComputer, SecurityWeek, SC World, Malwarebytes, GBHackers, and CyberSecurityNews, with many highlighting the risk to media servers and NAS appliances. Community discussion was active on Reddit (r/cybersecurity, r/Piracy, r/JellyfinCommunity), Mastodon, and Kodi forums, with users urging updates to Jellyfin and other FFmpeg-dependent applications. The Hacker News weekly recap and NHS Digital also issued alerts, reflecting the vulnerability's broad reach across consumer and enterprise environments (BleepingComputer, SecurityWeek, Malwarebytes).

Additional resources


SourceThis report was generated using AI

Related Ffmpeg vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-66040HIGH8.7
  • Ffmpeg logoFfmpeg
  • cpe:2.3:a:ffmpeg:ffmpeg
NoNoJul 24, 2026
CVE-2026-66039HIGH8.7
  • Ffmpeg logoFfmpeg
  • cpe:2.3:a:ffmpeg:ffmpeg
NoNoJul 24, 2026
CVE-2026-66041HIGH7.7
  • Ffmpeg logoFfmpeg
  • cpe:2.3:a:ffmpeg:ffmpeg
NoNoJul 24, 2026
CVE-2026-66038HIGH7.1
  • Ffmpeg logoFfmpeg
  • cpe:2.3:a:ffmpeg:ffmpeg
NoNoJul 24, 2026
CVE-2026-66037HIGH7.1
  • Ffmpeg logoFfmpeg
  • ffmpeg
NoNoJul 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management