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

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.68%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-19T19:22:07.743Z
- Modified: 2026-07-24T09:10:00.153Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- strukturag libheif: < 1.22.0
- glycin-loaders: no versions given
- struktur libheif: before 1.22.0

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/strukturag/libheif/security/advisories/GHSA-frfr-f3vg-2g6j> (exploit, vendor-advisory)
- <https://github.com/strukturag/libheif/releases/tag/v1.22.0> (release-notes)
- <https://access.redhat.com/security/cve/CVE-2026-32740> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2479969> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32740.json>

## Sources

- CVE List: [CVE-2026-32740](https://www.cve.org/CVERecord?id=CVE-2026-32740), CVE Terms of Use, modified 2026-07-15
- NVD: [CVE-2026-32740](https://nvd.nist.gov/vuln/detail/CVE-2026-32740), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-32740 · Whole record: https://cve.day/CVE-2026-32740.json · Rebuilt by cve.day 2026-11-25T22:59:21.996Z
