Out-of-bounds write in libheif - CVE-2026-47178
Published: May 20, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to out-of-bounds write in unc_decoder_component_interleave::decode_tile() when parsing a crafted HEIF file using the uncompressed unci codec with tiled, component-interleaved 4:2:0 content. A remote attacker can supply a specially crafted HEIF file to execute arbitrary code.
Only instances built with WITH_UNCOMPRESSED_CODEC=ON are vulnerable.
Affected software
Debian Linux
Ubuntu
libheif (Debian package)
libheif (Ubuntu package)
How to mitigate CVE-2026-47178
libheif (Debian package) - update to 1.19.8-1+deb13u1
libheif (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2