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.0: 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/E:U/U:Amber
CVE-ID: CVE-2026-47178
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: struktur AG
Affected software:
libheif

Detailed vulnerability description

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.


How to mitigate CVE-2026-47178

Install security update from vendor's website.

Sources