Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 75%

CVE-2026-32882: CWE-125: Out-of-bounds Read in strukturag libheif

0
High
VulnerabilityCVE-2026-32882cvecve-2026-32882cwe-125
Published: 05/19/2026 (05/19/2026, 20:07:21 UTC)
Source: CVE Database V5
Vendor/Project: strukturag
Product: 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

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

Affected software

GitHub Actionsmore threats →ai
strukturag/libheif
pkg:github/strukturag/libheif
Affected versions
<1.22.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 08:57:01 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses