CVE-2026-32740

high
Published 2026-05-19 · Modified 2026-05-21
CVSS v3
8.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v2
VIR risk
8.8

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.

Predictions

Exploit likelihood
92%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2026-32740.html

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2026-32740

vendor Authored 2026-05-27

Vendor advisory: security-advisories@github.com — https://github.com/strukturag/libheif/security/advisories/GHSA-frfr-f3vg-2g6j

vendor Authored 2026-05-27

Vendor advisory: security-advisories@github.com — https://github.com/strukturag/libheif/releases/tag/v1.22.0

OS impact

OSVersionStatusFixed in
debian debianbookwormaffected
debian debianbullseyeaffected
debian debianforkyaffected
debian debiansidaffected
debian debiantrixieaffected
suse slesaffected

Application impact

VendorProductVersionsFixed
strukturlibheif{"endExcluding":"1.22.0"}1.22.0

References

CWEs

CWE-787

Verify integrity in audit chain (admin only). AS-IS.