Integer overflow in libheif - CVE-2026-47714

 

Integer overflow in libheif - CVE-2026-47714

Published: May 20, 2026


Vulnerability identifier: #VU131972
CSH Severity: Medium
CVSS v4: 7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-47714
CWE-ID: CWE-190
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

libheif
Debian Linux
Gentoo Linux
Fedora
Ubuntu
heif-gdk-pixbuf (Ubuntu package)
heif-thumbnailer (Ubuntu package)
libheif-dev (Ubuntu package)
libheif1 (Ubuntu package)
libheif-plugin-svtenc (Ubuntu package)
libheif-plugin-x265 (Ubuntu package)
libheif-plugin-aomdec (Ubuntu package)
libheif-plugin-rav1e (Ubuntu package)
libheif-plugin-libde265 (Ubuntu package)
libheif-plugin-aomenc (Ubuntu package)
libheif-plugin-dav1d (Ubuntu package)
libheif-plugin-j2kdec (Ubuntu package)
libheif-plugin-jpegenc (Ubuntu package)
libheif-plugin-ffmpegdec (Ubuntu package)
libheif-plugin-jpegdec (Ubuntu package)
libheif-plugin-j2kenc (Ubuntu package)
libheif-examples (Ubuntu package)
libheif-plugin-kvazaar (Ubuntu package)
libheif-plugins-all (Ubuntu package)
heif-view (Ubuntu package)
libheif
aom
media-libs/libheif
libheif (Debian package)

How to mitigate CVE-2026-47714

Install security update from vendor's website.

libheif - update to 1.22.0
heif-gdk-pixbuf (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.6, 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
heif-thumbnailer (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.6, 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif-dev (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.6, 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif1 (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.6, 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif-plugin-svtenc (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.6, 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif-plugin-x265 (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.6, 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif-plugin-aomdec (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.6, 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif-plugin-rav1e (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.6, 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif-plugin-libde265 (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.6, 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif-plugin-aomenc (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.6, 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif-plugin-dav1d (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.6, 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif-plugin-j2kdec (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.6, 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif-plugin-jpegenc (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.6, 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif-plugin-ffmpegdec (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.6, 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif-plugin-jpegdec (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.6, 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif-plugin-j2kenc (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.6, 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif-examples (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif-plugin-kvazaar (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
libheif-plugins-all (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
heif-view (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
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

External References

Related Security Bulletins