Skip to content
Tech News
← Back to articles

HEIF Heist: image parser RCE exploit

read original more articles
Why This Matters

This report highlights a critical class of vulnerabilities in widely used image-decoding libraries like libheif and libde265, which underpin popular tools such as ImageMagick, libvips, and Sharp. Because these libraries are deeply embedded in countless applications and container images, the flaw exposes a massive and often invisible attack surface, making it a serious concern for any service that processes user-uploaded images.

Key Takeaways

A bug that could have allowed us to

HEIF Heist is Hacktron's name for a class of remote attack paths targeting services that decode attacker-controlled HEIF, HEIC, or AVIF images. By exploiting underlying native libraries, these vulnerabilities allow an attacker to bypass application-level defenses and trigger memory corruption, data exposure, or remote code execution (RCE).

The vulnerable attack surface lives below the application layer inside native C/C++ decoders such as libheif and libde265. These parsers typically enter production environments indirectly bundled via higher-level wrappers like ImageMagick, libvips, or Sharp, standard distro packages, and prebuilt container base images.

By probing upload endpoints with crafted .avif or .heic files, an attacker can fingerprint the remote libheif version family in use. Once identified, they can fire an exact version-matched n-day or 0-day payload to trigger memory corruption, data exfiltration, or remote code execution.