# CVE-2026-32882: libheif: Heap Buffer OOB Read in overlay compositing due to wrong alpha stride

- Priority: **Routine**
- Reason: Not severe (CVSS 7.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-19 · Modified: 2026-07-15
- Aliases: UBUNTU-CVE-2026-32882, DEBIAN-CVE-2026-32882
- Record: https://cvemate.com/vulnerability/CVE-2026-32882 · JSON: https://cvemate.com/vulnerability/CVE-2026-32882/json

## Description

```text
libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and prior contain a heap buffer over-read in HeifPixelImage::overlay() in libheif/pixelimage.cc. When compositing an overlay image (iovl) whose child image has a different bit depth for the alpha channel than for the color channels, the function indexes into the alpha plane using the color channel stride (in_stride) instead of the previously retrieved alpha_stride, causing reads past the end of the alpha buffer (up to 3,123 bytes for a 100×50 image with 10-bit color and 8-bit alpha). A crafted HEIF file can exploit this to cause a denial of service (crash) or potentially disclose adjacent heap memory through leaked bytes embedded in the decoded output pixels. This issue has been fixed in versionThis issue has been fixed in version 1.22.0.
```

## Signals

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

## Affected

- debian libheif (Debian): All versions (No fix recorded) \| \< 1.15.1-1+deb12u2 \| \< 1.19.8-1+deb13u1 \| \< 1.23.1-1
- ubuntu libheif (Ubuntu): \< 1.1.0-2ubuntu0.1~esm3 \| \< 1.6.1-1ubuntu0.1~esm3 \| \< 1.12.0-2ubuntu0.1~esm3 \| \< 1.17.6-1ubuntu4.4 \| \< 1.20.2-1ubuntu0.4 \| \< 1.21.2-3ubuntu0.1
- strukturag libheif: \< 1.22.0

## References

- <https://github.com/strukturag/libheif/security/advisories/GHSA-hg7q-rjr2-8x46>
- <https://github.com/strukturag/libheif/releases/tag/v1.22.0>
- <https://access.redhat.com/security/cve/CVE-2026-32882>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2480000>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32882.json>
- <https://ubuntu.com/security/CVE-2026-32882>
- <https://www.cve.org/CVERecord?id=CVE-2026-32882>
- <https://ubuntu.com/security/notices/USN-8454-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-32882>

---

Data as of 2026-12-05T10:02:12.433Z. 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
