Skip to content
OpenAdvisories
High · 8.8 Public exploit CVE-2026-32740 EUVD-2026-30978

libheif: Heap-Buffer-Overflow Write in Grid Tile Chroma Compositing

Published May 19, 2026 · Updated Jul 15, 2026 · Assigned by GitHub_M

Description

libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and prior contain a heap-buffer-overflow (write) vulnerability in the grid tile compositing, allowing an attacker to write 64 bytes of fully attacker-controlled data past the end of a chroma plane heap allocation by crafting a HEIF/AVIF file with a 1×4 grid of odd-height tiles. The overflow is triggered during normal image decoding with default build configuration. The written bytes are chroma (Cb/Cr) pixel values from the attacking tile, giving the attacker full control over the overflow content. This issue has been fixed in version 1.22.0.

Affected products

VendorProductAffectedFixed
strukturag libheif < 1.22.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libheif 1.23.1-1 —
Debian 13 libheif 1.19.8-1+deb13u1 —
Debian 12 libheif No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS libheif 1.21.2-3ubuntu0.1 —
Ubuntu 25.10 libheif 1.20.2-1ubuntu0.4 —
ReleasePackageFixed inAdvisory
SLES 15 SP7 libheif 1.23.0-150700.3.15.1 SUSE-SU-2026:2622-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 libheif 1.23.0-160000.1.1 SUSE-SU-2026:22153-1
SLES 16.0 libheif 1.23.0-160000.1.1 SUSE-SU-2026:22153-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libheif 1.22.2-1.1 openSUSE-SU-2026:10878-1
openSUSE Leap 16.0 libheif 1.23.0-160000.1.1 openSUSE-SU-2026:20974-1
ReleasePackageFixed inAdvisory
Alpine v3.24 libheif 1.22.2-r0 —
Alpine v3.23 libheif 1.23.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 libheif +3 1.19.8-1.amzn2023.0.5 ALAS2023-2026-1814

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 5

References