CVE-2026-32882: CWE-125: Out-of-bounds Read in strukturag libheif
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.
AI Analysis
Technical Summary
The vulnerability in libheif (a HEIF and AVIF file format decoder/encoder) is a heap buffer over-read in the HeifPixelImage::overlay() function. When an overlay image's child image has a different bit depth for the alpha channel than the color channels, the function incorrectly uses the color channel stride to index the alpha plane, resulting in reads beyond the alpha buffer boundary. This can cause denial of service via crashes or potentially leak adjacent heap memory through the decoded output pixels. The flaw affects versions prior to 1.22.0 and has been fixed in version 1.22.0.
Potential Impact
Exploitation of this vulnerability can cause a denial of service due to application crashes and may allow an attacker to disclose adjacent heap memory, potentially leaking sensitive information embedded in the decoded image output. The CVSS score is 7.1 (high severity), indicating a significant impact on confidentiality and availability.
Mitigation Recommendations
A fix is available in libheif version 1.22.0. Users and vendors should upgrade to version 1.22.0 or later to remediate this vulnerability. No additional mitigation steps are indicated in the vendor advisory.
CVE-2026-32882: CWE-125: Out-of-bounds Read in strukturag libheif
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.
CVSS v3.1
Score 7.1high
Affected software
pkg:github/strukturag/libheifRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in libheif (a HEIF and AVIF file format decoder/encoder) is a heap buffer over-read in the HeifPixelImage::overlay() function. When an overlay image's child image has a different bit depth for the alpha channel than the color channels, the function incorrectly uses the color channel stride to index the alpha plane, resulting in reads beyond the alpha buffer boundary. This can cause denial of service via crashes or potentially leak adjacent heap memory through the decoded output pixels. The flaw affects versions prior to 1.22.0 and has been fixed in version 1.22.0.
Potential Impact
Exploitation of this vulnerability can cause a denial of service due to application crashes and may allow an attacker to disclose adjacent heap memory, potentially leaking sensitive information embedded in the decoded image output. The CVSS score is 7.1 (high severity), indicating a significant impact on confidentiality and availability.
Mitigation Recommendations
A fix is available in libheif version 1.22.0. Users and vendors should upgrade to version 1.22.0 or later to remediate this vulnerability. No additional mitigation steps are indicated in the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-16T21:03:44.420Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-32882","vendor":"Red Hat"}]
Threat ID: 6a0cc91dba1db47362ec07cf
Added to database: 05/19/2026, 20:33:33 UTC
Last enriched: 07/15/2026, 08:57:01 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 143
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.