CVE-2026-32740
libheif: Heap-Buffer-Overflow Write in Grid Tile Chroma Compositing
Reported by github_m · Published May 19, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libheif | struktur | 1.22.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| strukturag | libheif | < 1.22.0 |
| Red Hat | Red Hat Enterprise Linux 10 | |
| strukturag | libheif | 0 |
| amazon:2023 | libheif-tools | 0 |
| amazon:2023 | heif-pixbuf-loader | 0 |
| amazon:2023 | libheif-devel | 0 |
| Red Hat | Red Hat Enterprise Linux 10 | |
| alpine | libheif | 0, 0 |
| amazon:2023 | libheif | 0 |
Timeline
- May 19, 2026 CVE Published
- May 19, 2026 PoC Published (2 in total, the first dated here)
- May 20, 2026 EPSS Score (30 in total, the first dated here)
- May 20, 2026 Coalition ESS Score
- Jul 24, 2026 CVE Updated
- Sep 21, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-32740
vulnetix vdb fixes CVE-2026-32740
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-32740/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/strukturag/libheif/security/advisories/GHSA-frfr-f3vg-2g6j x_refsource_CONFIRM
- https://github.com/strukturag/libheif/releases/tag/v1.22.0 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-32740 advisory
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32740.json advisory
- RHBZ#2479969 issue