June 23, 2026

PBX Science

VoIP & PBX, Networking, DIY, Computers.

A Single Video File Can Hijack Hundreds of Apps — FFmpeg’s “PixelSmash” Flaw Explained



FFmpeg “PixelSmash” Vulnerability – CVE-2026-8461
Security / Vulnerability Disclosure
CVE-2026-8461 · PixelSmash CVSS 8.8 HIGH

A Single Video File Can Hijack Hundreds of Apps — FFmpeg’s “PixelSmash” Flaw Explained

A heap overflow buried inside a little-known video decoder turns routine media scans into a remote code execution opportunity, exposing Jellyfin, Kodi, OBS Studio, and much of the software ecosystem.

Security researchers at JFrog have uncovered a high-severity vulnerability in FFmpeg — the open-source multimedia framework that underpins video playback, transcoding, and thumbnail generation across virtually every operating system and device category. Dubbed PixelSmash, the flaw can crash or, under specific conditions, fully compromise any application that processes a specially crafted video file, all without the user ever pressing play.

What Is the Vulnerability?

PixelSmash (CVE-2026-8461) is a heap out-of-bounds write residing in FFmpeg’s MagicYUV decoder, a component compiled into every default FFmpeg build and registered for AVI, MKV, and MOV container formats. The root cause is a rounding mismatch between how FFmpeg’s frame allocator and the MagicYUV decoder independently calculate chroma plane heights when processing video slices.

When a malicious video supplies an odd slice_height value, the mismatch causes FFmpeg to write one full row of pixel data beyond the end of its heap-allocated buffer. That overflowing write lands directly on an adjacent AVBuffer structure — FFmpeg’s own reference-counted frame buffer — allowing an attacker to overwrite a function pointer and redirect execution to an arbitrary command when the buffer is later freed during normal cleanup.

Key Technical Detail

Full remote code execution requires Address Space Layout Randomization (ASLR) to be disabled, or the chaining of a separate information-disclosure bug in FFmpeg’s FlashSV decoder to bypass it. Without ASLR bypass, the vulnerability reliably causes a denial-of-service crash across every affected application. JFrog demonstrated full RCE against Jellyfin 10.11.9 and Nextcloud with ASLR disabled.

Why the Attack Surface Is So Large

FFmpeg is not merely a media player — it is the foundational codec library embedded inside hundreds of downstream applications, cloud transcoding pipelines, Linux desktop thumbnail generators, NAS devices, smart TVs, and security cameras. Because the MagicYUV decoder is enabled by default in upstream FFmpeg builds and in most major Linux distribution packages, every project that links against libavcodec silently inherits the exposure.

What makes PixelSmash especially dangerous is that exploitation requires no user interaction. Many media-serving applications automatically scan new files for metadata or generate preview thumbnails as soon as a file appears in a watched folder. An attacker can seed a weaponized MagicYUV AVI through a torrent network targeting users who route downloads into a Jellyfin media library: the moment the file lands on disk, Jellyfin’s real-time filesystem monitor triggers an ffprobe metadata scan — and the exploit fires in the background before a human ever touches the file.

Affected Applications

Researchers confirmed the following applications load the MagicYUV decoder and are therefore at risk of at least denial-of-service, and in some cases remote code execution:

Jellyfin (RCE PoC)
Nextcloud (RCE PoC)
Kodi
Emby
OBS Studio
PhotoPrism
mpv
Immich
GNOME / KDE / XFCE thumbnails
Plex (not affected)

Plex is notably unaffected because it maintains a custom FFmpeg build that enforces a strict decoder allowlist — and MagicYUV is not on it. Applications such as Slack, Discord, Telegram, and WhatsApp use FFmpeg for server-side video previews and may be susceptible, though they were not explicitly tested in the JFrog proof-of-concept. Nextcloud’s security team declined to patch the issue directly, reasoning that the flaw originates outside their codebase.

Disclosure and Patch Timeline

JFrog researcher Yuval Moravchick privately reported the vulnerability to the FFmpeg security team on May 13, 2026. FFmpeg addressed the issue in version 8.1.2, released on June 17, 2026. The CVE was published a day later, and JFrog released its full technical analysis on June 22, 2026.

What You Should Do Now

  1. Upgrade FFmpeg to version 8.1.2 or later across all environments where FFmpeg is deployed — servers, desktops, and embedded systems alike.
  2. Audit downstream dependencies: identify every application in your environment that bundles or dynamically links against libavcodec, and verify that updated builds have reached production.
  3. If an upgrade is not immediately feasible, rebuild FFmpeg with the MagicYUV decoder disabled: ./configure --disable-decoder=magicyuv.
  4. Avoid directing torrent downloads or untrusted video files into folders monitored by auto-scanning media servers until patched builds are confirmed.
  5. Implement strict file-format validation at ingestion points to block untrusted AVI, MKV, and MOV files in sensitive pipelines.

A Supply-Chain Warning for the Ecosystem

PixelSmash is a textbook software supply-chain vulnerability: the bug lives in one library, but its blast radius extends across hundreds of projects that had no hand in writing the vulnerable code and have no direct mechanism for independent remediation. Patching FFmpeg upstream is necessary but not sufficient — every downstream maintainer must update their bundled copy, and every operator must verify that the updated build has actually reached production.

FFmpeg serves as the media-processing backbone for the software ecosystem at large, from desktop video players and cloud transcoding platforms to AI/ML data pipelines and embedded IoT devices. A flaw in any of its default-enabled decoders is therefore among the highest-impact vulnerability classes in existence. PixelSmash is a timely reminder that the safety of an application depends not only on its own code, but on every library it trusts to handle untrusted input.

A Single Video File Can Hijack Hundreds of Apps — FFmpeg's "PixelSmash" Flaw Explained

A Single Video File Can Hijack Hundreds of Apps — FFmpeg’s “PixelSmash” Flaw Explained


Windows Software Alternatives in Linux


Disclaimer of pbxscience.com

PBXscience.com © All Copyrights Reserved. | Newsphere by AF themes.