VYPR
patchPublished Jun 22, 2026· Updated Jun 24, 2026· 4 sources

FFmpeg Patches 'PixelSmash' MagicYUV Heap Overflow Affecting Jellyfin, Kodi, OBS, and More

FFmpeg version 8.1.2 fixes CVE-2026-8461, a high-severity heap out-of-bounds write in the MagicYUV decoder that can enable remote code execution on Jellyfin servers and denial-of-service across dozens of media applications.

FFmpeg has released version 8.1.2 to patch a critical vulnerability in its MagicYUV decoder, tracked as CVE-2026-8461 and dubbed 'PixelSmash.' The flaw, a heap out-of-bounds write, carries a CVSS score of 8.8 and affects any application relying on FFmpeg's libavcodec library for video decoding. Researchers at JFrog discovered the bug and demonstrated that it can lead to remote code execution on Jellyfin media servers under specific conditions, as well as reliable denial-of-service in popular software including Kodi, Emby, Nextcloud, PhotoPrism, and OBS Studio.

The root cause lies in an inconsistency between how the frame allocator and the MagicYUV decoder compute chroma plane heights when processing slices—independent regions of a video frame. By crafting a malicious video file in AVI, MKV, or MOV format, an attacker can trigger a one-row heap buffer overflow. The vulnerability is exploitable whenever a user opens such a file, browses a directory containing it (triggering thumbnail generation), or runs any automated media ingestion workflow.

JFrog researcher Yuval Moravchick achieved full remote code execution against a Jellyfin 10.11.9 server by seeding a malicious AVI file into the media library. Jellyfin's automatic ffprobe metadata scan triggered the overflow, allowing the attacker to hijack the AVBuffer.free function to execute arbitrary commands as the jellyfin service user. However, the RCE exploit requires Address Space Layout Randomization (ASLR) to be disabled; the researcher noted that chaining PixelSmash with a separate information-disclosure bug in FFmpeg's FlashSV decoder could theoretically bypass ASLR.

Even without RCE, CVE-2026-8461 reliably causes denial-of-service on vulnerable targets. Applications like Kodi, OBS Studio, PhotoPrism, and GNOME/KDE/XFCE thumbnail generators use FFmpeg with the MagicYUV decoder enabled by default. Messaging platforms such as Slack, Discord, Telegram, and WhatsApp also use FFmpeg for server-side video previews and may be susceptible, though they were not tested by JFrog.

Plex, the most popular media server, uses a custom FFmpeg build with decoders disabled and a minimal allowlist, effectively mitigating the risk. Jellyfin has updated its bundled FFmpeg version, and PhotoPrism is working on adding a file format blocklist. Nextcloud declined to address the flaw, stating it exists outside of Nextcloud. JFrog reported the vulnerability to the FFmpeg security team on May 13, and the fix was released in version 8.1.2 on June 17.

The researchers warn that PixelSmash has a massive attack surface because the MagicYUV decoder is present in hundreds of projects that trust FFmpeg to handle untrusted input safely, turning the vulnerability into a supply-chain problem. Users are urged to update FFmpeg to version 8.1.2 or later immediately, and organizations using affected applications should apply patches as soon as they become available.

JFrog Security Research has now published a full proof-of-concept demonstrating remote code execution against a Jellyfin media server and a Nextcloud instance using a malicious 50 KB AVI file. The exploit chain leverages a rounding mismatch in chroma slice height handling to overwrite an AVBuffer structure, ultimately calling system() with an attacker-controlled command. The researchers also warn that the attack surface extends to cloud media pipelines and AI/ML environments using FFmpeg via PyAV or OpenCV, where a single crafted file can trigger automatic decoding without user interaction.

The SecurityWeek article further underscores the broad impact of the PixelSmash vulnerability, noting that any application using FFmpeg's libavcodec library—including video players, media servers, and NAS appliances—is at risk of remote code execution via crafted media files. While the existing coverage focused on CVE-2026-8461 patched in FFmpeg 8.1.2, this report highlights the attack vector of sending malicious media files to trigger code execution, though it does not assign a separate CVE ID nor detail a distinct technical variant beyond the previously disclosed heap out-of-bounds write.

Malwarebytes provides updated mitigation guidance, emphasizing that the vulnerability is triggered when an application using FFmpeg processes untrusted media for thumbnails, metadata extraction, or playback, and notes that tens of millions of Linux systems rely on ffmpegthumbnailer and system libavcodec, meaning simply browsing a folder containing a malicious file can trigger the exploit. The article also warns that Jellyfin and Nextcloud servers, as well as consumer NAS and smart TV platforms, are widely affected, and advises administrators to update FFmpeg to version 8.1.2, disable MagicYUV, and monitor for abnormal crashes of media players or thumbnailers as potential indicators of compromise.

Synthesized by Vypr AI