Out-of-bounds write in libheif - CVE-2026-47178

 

Out-of-bounds write in libheif - CVE-2026-47178

Published: May 20, 2026


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

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

libheif
Debian Linux
Ubuntu
libheif (Debian package)
libheif (Ubuntu package)

How to mitigate CVE-2026-47178

Install security update from vendor's website.

libheif - update to 1.22.0
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

External References

Related Security Bulletins