CVE-2026-62289: CWE-191: Integer Underflow (Wrap or Wraparound) in strukturag libheif
CVE-2026-62289 is an integer underflow vulnerability in the strukturag libheif library versions 1.23.0 and earlier. It occurs when processing a crafted HEIF or AVIF file containing a clean aperture box, which can cause image dimensions to reduce to zero and lead to crashes or corrupted tiling results. The issue arises from applying a transformation twice, causing an underflow in image dimension calculations. This vulnerability is fixed in version 1.23.1.
AI Analysis
Technical Summary
The vulnerability in libheif (CVE-2026-62289) involves an integer underflow triggered by a crafted HEIF or AVIF file with a clean aperture box. When heif_image_handle_get_image_tiling(handle, 1, &tiling) is called, the image dimension can be reduced to zero due to double application of transformations: ImageItem::get_heif_image_tiling() returns already transformed dimensions, and process_image_transformations_on_tiling() applies the clean aperture transformation again. This leads to an underflow in Box_clap::left_rounded(0), where image_width minus one underflows and constructs a Fraction with a large numerator (0xFFFFFFFF). Debug builds assert and abort, while release builds may return corrupt crop and zero-width tiling results. The affected code spans image_item.cc, context.cc, and box.cc. The issue is resolved in libheif version 1.23.1.
Potential Impact
The vulnerability can cause denial of service through application crashes or corrupted image processing results when handling maliciously crafted HEIF or AVIF files. There is no impact on confidentiality or integrity reported. The CVSS score is 4.3 (medium severity) with an attack vector of network, low complexity, no privileges required, user interaction required, and impact limited to availability.
Mitigation Recommendations
This vulnerability is fixed in libheif version 1.23.1. Users and vendors should upgrade to version 1.23.1 or later to remediate the issue. No other mitigation or workaround is indicated by the vendor advisory.
CVE-2026-62289: CWE-191: Integer Underflow (Wrap or Wraparound) in strukturag libheif
Description
CVE-2026-62289 is an integer underflow vulnerability in the strukturag libheif library versions 1.23.0 and earlier. It occurs when processing a crafted HEIF or AVIF file containing a clean aperture box, which can cause image dimensions to reduce to zero and lead to crashes or corrupted tiling results. The issue arises from applying a transformation twice, causing an underflow in image dimension calculations. This vulnerability is fixed in version 1.23.1.
CVSS v3.1
Score 4.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 (CVE-2026-62289) involves an integer underflow triggered by a crafted HEIF or AVIF file with a clean aperture box. When heif_image_handle_get_image_tiling(handle, 1, &tiling) is called, the image dimension can be reduced to zero due to double application of transformations: ImageItem::get_heif_image_tiling() returns already transformed dimensions, and process_image_transformations_on_tiling() applies the clean aperture transformation again. This leads to an underflow in Box_clap::left_rounded(0), where image_width minus one underflows and constructs a Fraction with a large numerator (0xFFFFFFFF). Debug builds assert and abort, while release builds may return corrupt crop and zero-width tiling results. The affected code spans image_item.cc, context.cc, and box.cc. The issue is resolved in libheif version 1.23.1.
Potential Impact
The vulnerability can cause denial of service through application crashes or corrupted image processing results when handling maliciously crafted HEIF or AVIF files. There is no impact on confidentiality or integrity reported. The CVSS score is 4.3 (medium severity) with an attack vector of network, low complexity, no privileges required, user interaction required, and impact limited to availability.
Mitigation Recommendations
This vulnerability is fixed in libheif version 1.23.1. Users and vendors should upgrade to version 1.23.1 or later to remediate the issue. 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: 6a84d00bc6e8be0332c73b01
Added to database: 08/18/2026, 21:35:07 UTC
Last enriched: 09/11/2026, 10:33:34 UTC
Last updated: 10/03/2026, 02:46:06 UTC
Views: 67
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.