๐Ÿ” CVE Alert

CVE-2026-32882

HIGH 7.1

libheif: Heap Buffer OOB Read in overlay compositing due to wrong alpha stride

CVSS Score
7.1
EPSS Score
0.0%
EPSS Percentile
9th

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.

CWE CWE-125
Vendor strukturag
Product libheif
Published May 19, 2026
Last Updated May 20, 2026
Stay Ahead of the Next One

Get instant alerts for strukturag libheif

Be the first to know when new high vulnerabilities affecting strukturag libheif are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
High

Affected Versions

strukturag / libheif
< 1.22.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/strukturag/libheif/security/advisories/GHSA-hg7q-rjr2-8x46 github.com: https://github.com/strukturag/libheif/releases/tag/v1.22.0