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
Gentoo Linux
Debian Linux
Fedora
Ubuntu
heif-gdk-pixbuf (Ubuntu package)
libheif-dev (Ubuntu package)
libheif-plugin-aomdec (Ubuntu package)
libheif-plugin-aomenc (Ubuntu package)
libheif-plugin-dav1d (Ubuntu package)
libheif-plugin-ffmpegdec (Ubuntu package)
libheif-plugin-j2kdec (Ubuntu package)
libheif-plugin-j2kenc (Ubuntu package)
libheif-plugin-jpegdec (Ubuntu package)
libheif-plugin-jpegenc (Ubuntu package)
libheif-plugin-kvazaar (Ubuntu package)
heif-thumbnailer (Ubuntu package)
libheif-plugin-libde265 (Ubuntu package)
libheif-plugin-rav1e (Ubuntu package)
libheif-plugin-svtenc (Ubuntu package)
libheif1 (Ubuntu package)
libheif-plugin-x265 (Ubuntu package)
libheif-plugins-all (Ubuntu package)
heif-view (Ubuntu package)
libheif
aom
media-libs/libheif
libheif (Debian package)
How to mitigate CVE-2026-47178
heif-gdk-pixbuf (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
libheif-dev (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
libheif-plugin-aomdec (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
libheif-plugin-aomenc (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
libheif-plugin-dav1d (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
libheif-plugin-ffmpegdec (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
libheif-plugin-j2kdec (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
libheif-plugin-j2kenc (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
libheif-plugin-jpegdec (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
libheif-plugin-jpegenc (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
libheif-plugin-kvazaar (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
heif-thumbnailer (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
libheif-plugin-libde265 (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
libheif-plugin-rav1e (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
libheif-plugin-svtenc (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
libheif1 (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
libheif-plugin-x265 (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
libheif-plugins-all (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
heif-view (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2
libheif - addressed in versions 1.23.5-3.el10_3, 1.23.5-3.el10_4
aom - addressed in versions 3.13.3-1.el10_3, 3.13.3-1.el10_4
media-libs/libheif - update to 1.23.7
libheif (Debian package) - update to 1.19.8-1+deb13u1