CVE-2026-47247

Summary

libheif is a HEIF and AVIF file format decoder and encoder. Prior to version 1.22.0, two bugs in libheif chain to leak process heap memory as visible pixel values in decoded grid images. An attacker who uploads a crafted AVIF/HEIC file to any server-side image processor (WordPress, Sharp/libvips, ImageMagick, etc.) can recover heap data - including library function pointers sufficient to defeat ASLR, or any other secret - from the publicly-downloadable transcoded JPEG/PNG/WebP output. Local attack vectors are also possible. Version 1.22.0 fixes the issue.

Affected Software

VendorProductVersion RangeStatus
strukturaglibheif< 1.22.0affected

Weaknesses

  • CWE-200: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-226: CWE-226: Sensitive Information in Resource Not Removed Before Reuse
  • CWE-682: CWE-682: Incorrect Calculation
  • CWE-908: CWE-908: Use of Uninitialized Resource

References