# CVE-2026-32740: libheif: Heap-Buffer-Overflow Write in Grid Tile Chroma Compositing

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 1.22.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-05-19 · Modified: 2026-07-15
- Aliases: ALPINE-CVE-2026-32740, UBUNTU-CVE-2026-32740, DEBIAN-CVE-2026-32740
- Record: https://cvemate.com/vulnerability/CVE-2026-32740 · JSON: https://cvemate.com/vulnerability/CVE-2026-32740/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.684%, percentile 53.984%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine libheif (Alpine Linux): \< 1.23.0-r0 \| \< 1.22.2-r0
- debian libheif (Debian): All versions (No fix recorded) \| \< 1.19.8-1+deb13u1 \| \< 1.23.1-1
- ubuntu libheif (Ubuntu): \< 1.20.2-1ubuntu0.4 \| \< 1.21.2-3ubuntu0.1
- struktur libheif: \< 1.22.0
- strukturag libheif: \< 1.22.0

## References

- <https://github.com/strukturag/libheif/security/advisories/GHSA-frfr-f3vg-2g6j>
- <https://github.com/strukturag/libheif/releases/tag/v1.22.0>
- <https://access.redhat.com/security/cve/CVE-2026-32740>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2479969>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32740.json>
- <https://security.alpinelinux.org/vuln/CVE-2026-32740>
- <https://ubuntu.com/security/CVE-2026-32740>
- <https://www.cve.org/CVERecord?id=CVE-2026-32740>
- <https://ubuntu.com/security/notices/USN-8454-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-32740>

---

Data as of 2026-12-05T10:01:58.004Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
