Blog · Security

Critical libheif Flaw Lets Attackers Hijack Servers via iPhone Photos

Wordfence’s Argus research team has disclosed a critical vulnerability in libheif, a library commonly used by servers to decode and process HEIC images, the format used by default on iPhones for photos. The flaw carries a CVSS score of 9.8, placing it among the most severe class of vulnerabilities.

Researchers demonstrated the impact on a specific WordPress deployment, showing that the vulnerability could be used both to disclose protected files and to achieve code execution on the affected server. Wordfence describes the exploitation chain as “HEIF Heist,” a proof of concept showing that turning an image-processing bug into a working exploit against a real system is practical, not just theoretical.

Why This Matters for Site Owners

Many WordPress sites and hosting environments rely on image libraries like libheif behind the scenes to handle uploaded photos, including images captured on iPhones and uploaded directly through media libraries, plugins, or third-party integrations. Because HEIC has become a common photo format for mobile uploads, any server-side component that automatically processes these files is a potential target.

Wordfence notes that exploitation is target-specific, meaning an attacker would need to adapt the technique to the particular configuration of a given site or server. However, the successful demonstration against a real WordPress deployment underscores that this is not merely an academic concern.

What Site Owners and Hosts Should Do

  • Check whether your hosting stack, plugins, or media processing tools rely on libheif for HEIC image handling.
  • Apply vendor patches or updates to libheif as soon as they become available.
  • Review upload handling on WordPress sites, particularly any features that automatically process or convert HEIC images from mobile uploads.
  • Monitor for further guidance from Wordfence and hosting providers regarding patched versions.

As with many server-side library vulnerabilities, the risk extends beyond WordPress itself to any application or hosting environment that includes libheif as a dependency. Site owners and hosting providers should treat this as a priority item for their patching and monitoring routines.