CVE-2026-32882
libheif: Heap Buffer OOB Read in overlay compositing due to wrong alpha stride
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 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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| strukturag | libheif | < 1.22.0 |
| strukturag | libheif | 0 |
| Red Hat | Red Hat Enterprise Linux 10 | |
| amazon:2023 | heif-pixbuf-loader | 0 |
| amazon:2023 | libheif-devel | 0 |
| amazon:2023 | libheif-tools | 0 |
| amazon:2023 | libheif | 0 |
| Red Hat | Red Hat Enterprise Linux 10 |
Timeline
- May 19, 2026 CVE Published
- May 19, 2026 PoC Published
- 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-32882
vulnetix vdb fixes CVE-2026-32882
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-32882/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-hg7q-rjr2-8x46 x_refsource_CONFIRM
- https://github.com/strukturag/libheif/releases/tag/v1.22.0 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-32882 advisory
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32882.json advisory
- RHBZ#2480000 issue