CVE-2026-62291: CWE-125: Out-of-bounds Read in strukturag libheif
CVE-2026-62291 is a medium severity vulnerability in strukturag's libheif (version 1.23.0 and earlier) involving an out-of-bounds read and write caused by inconsistent handling of auxiliary alpha plane dimensions during image decoding and encoding. This flaw can lead to heap corruption when processing crafted image sequences with mismatched primary and auxiliary plane sizes. The issue is fixed in libheif version 1.23.1.
AI Analysis
Technical Summary
The vulnerability in libheif arises from a mismatch between the dimensions of the primary image plane and the auxiliary alpha plane during decoding and encoding workflows. Specifically, Track_Visual::decode_next_image_sample() does not verify that the auxiliary alpha plane dimensions match the primary frame, leading to inconsistent image data passed to encoding functions. In unc_encoder::encode(), buffer sizing is based on primary dimensions, but copying uses actual plane dimensions, causing out-of-bounds writes or reads when the alpha plane is larger or smaller. This heap corruption vulnerability is addressed in libheif version 1.23.1.
Potential Impact
An attacker can craft a malicious HEIF or AVIF image with specific plane dimensions that trigger heap corruption during normal decode and re-encode operations. This can lead to memory corruption affecting confidentiality, integrity, and availability of the affected system. The CVSS 3.1 base score is 5.3 (medium severity), reflecting local attack vector, low complexity, no privileges required, user interaction needed, and impacts to confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade libheif to version 1.23.1 or later, where this vulnerability is fixed. No other mitigation or workaround is indicated by the vendor advisory.
CVE-2026-62291: CWE-125: Out-of-bounds Read in strukturag libheif
Description
CVE-2026-62291 is a medium severity vulnerability in strukturag's libheif (version 1.23.0 and earlier) involving an out-of-bounds read and write caused by inconsistent handling of auxiliary alpha plane dimensions during image decoding and encoding. This flaw can lead to heap corruption when processing crafted image sequences with mismatched primary and auxiliary plane sizes. The issue is fixed in libheif version 1.23.1.
CVSS v3.1
Score 5.3medium
Affected software
strukturag
libheif
pkg:github/strukturag/libheifRun 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
Technical Analysis
The vulnerability in libheif arises from a mismatch between the dimensions of the primary image plane and the auxiliary alpha plane during decoding and encoding workflows. Specifically, Track_Visual::decode_next_image_sample() does not verify that the auxiliary alpha plane dimensions match the primary frame, leading to inconsistent image data passed to encoding functions. In unc_encoder::encode(), buffer sizing is based on primary dimensions, but copying uses actual plane dimensions, causing out-of-bounds writes or reads when the alpha plane is larger or smaller. This heap corruption vulnerability is addressed in libheif version 1.23.1.
Potential Impact
An attacker can craft a malicious HEIF or AVIF image with specific plane dimensions that trigger heap corruption during normal decode and re-encode operations. This can lead to memory corruption affecting confidentiality, integrity, and availability of the affected system. The CVSS 3.1 base score is 5.3 (medium severity), reflecting local attack vector, low complexity, no privileges required, user interaction needed, and impacts to confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade libheif to version 1.23.1 or later, where this vulnerability is fixed. No other mitigation or workaround is indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-13T18:37:08.488Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a84d00bc6e8be0332c73b03
Added to database: 08/18/2026, 21:35:07 UTC
Last enriched: 09/19/2026, 01:35:32 UTC
Last updated: 10/02/2026, 02:46:05 UTC
Views: 61
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.