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

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/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.71%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-19T20:07:21.464Z
- Modified: 2026-07-24T09:10:00.153Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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 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.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/strukturag/libheif/security/advisories/GHSA-hg7q-rjr2-8x46> (exploit)
- <https://github.com/strukturag/libheif/releases/tag/v1.22.0>
- <https://access.redhat.com/security/cve/CVE-2026-32882> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2480000> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32882.json>

## Sources

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

---

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