Integer overflow in libheif - CVE-2026-47714
Published: May 20, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service and disclose sensitive information.
The vulnerability exists due to integer overflow or wraparound in the inline mask parsing code in libheif/region.cc when parsing a crafted HEIF file. A remote attacker can trick the victim into opening a crafted file to cause a denial of service and disclose sensitive information.
The issue is reachable when applications raise the max_image_size_pixels limit or disable it via LIBHEIF_SECURITY_LIMITS=off.
Affected software
Debian Linux
Ubuntu
libheif (Ubuntu package)
libheif (Debian package)
How to mitigate CVE-2026-47714
libheif (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.6, 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif (Debian package) - update to 1.19.8-1+deb13u1