CVE-2026-62289: CWE-191: Integer Underflow (Wrap or Wraparound) in strukturag libheif
CVE-2026-62289 is an integer underflow vulnerability in strukturag libheif version 1.23.0 and earlier. A crafted HEIF or AVIF file with a clean aperture box can cause image dimensions to reduce to zero, leading to crashes or corrupted tiling results when certain image tiling functions are called. The issue arises from applying a transformation twice, causing an underflow and invalid fractional values. Debug builds abort on assertion failure, while release builds may return corrupt results. 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 containing 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 the clean aperture transformation. This causes an underflow in Box_clap::left_rounded(0), resulting in an invalid Fraction(0xFFFFFFFF, 2). Debug builds hit an assertion and abort, while release builds may produce 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
This vulnerability can cause denial of service through application crashes in debug builds or corrupted image tiling results in release builds. There is no impact on confidentiality or integrity reported. The CVSS score is 4.3 (medium), indicating a low-severity availability impact without elevated privileges or user interaction required.
Mitigation Recommendations
Upgrade to libheif version 1.23.1 or later, where this integer underflow issue is fixed. No other mitigation or workaround is indicated. Patch status is confirmed by the vendor stating the fix in version 1.23.1.
CVE-2026-62289: CWE-191: Integer Underflow (Wrap or Wraparound) in strukturag libheif
Description
CVE-2026-62289 is an integer underflow vulnerability in strukturag libheif version 1.23.0 and earlier. A crafted HEIF or AVIF file with a clean aperture box can cause image dimensions to reduce to zero, leading to crashes or corrupted tiling results when certain image tiling functions are called. The issue arises from applying a transformation twice, causing an underflow and invalid fractional values. Debug builds abort on assertion failure, while release builds may return corrupt results. This vulnerability is fixed in version 1.23.1.
CVSS v3.1
Score 4.3medium
Affected software
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 containing 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 the clean aperture transformation. This causes an underflow in Box_clap::left_rounded(0), resulting in an invalid Fraction(0xFFFFFFFF, 2). Debug builds hit an assertion and abort, while release builds may produce 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
This vulnerability can cause denial of service through application crashes in debug builds or corrupted image tiling results in release builds. There is no impact on confidentiality or integrity reported. The CVSS score is 4.3 (medium), indicating a low-severity availability impact without elevated privileges or user interaction required.
Mitigation Recommendations
Upgrade to libheif version 1.23.1 or later, where this integer underflow issue is fixed. No other mitigation or workaround is indicated. Patch status is confirmed by the vendor stating the fix in version 1.23.1.
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
- Remediation Level
- null
Threat ID: 6a84d00bc6e8be0332c73b01
Added to database: 08/18/2026, 21:35:07 UTC
Last enriched: 08/18/2026, 21:51:08 UTC
Last updated: 08/18/2026, 22:21:19 UTC
Views: 5
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.