CVE-2026-32882
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::ove
CVSS
7.1
High
EPSS
0.3%
p25
KEV
—
Exploit Today
8
0-100
Published: May 19, 2026 · Last modified: Jul 15, 2026 · CWE-125
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.
- github.comhttps://github.com/strukturag/libheif/releases/tag/v1.22.0
- github.comhttps://github.com/strukturag/libheif/security/advisories/GHSA-hg7q-rjr2-8x46
- access.redhat.comhttps://access.redhat.com/security/cve/CVE-2026-32882
- bugzilla.redhat.comhttps://bugzilla.redhat.com/show_bug.cgi?id=2480000
- github.comhttps://github.com/strukturag/libheif/security/advisories/GHSA-hg7q-rjr2-8x46
- security.access.redhat.comhttps://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32882.json