Skip to main content
EPSS 0.4%top 68%

CVE-2026-62289: CWE-191: Integer Underflow (Wrap or Wraparound) in strukturag libheif

0
Medium
Published: 08/18/2026 (08/18/2026, 21:19:18 UTC)
Source: CVE Database V5
Vendor/Project: strukturag
Product: 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

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

Affected software

strukturag

libheif

Affected versions
<1.23.1
GitHub Actionsmore threats →ai
strukturag/libheif
pkg:github/strukturag/libheif
Affected versions
<=1.23.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: 09/11/2026, 10:33:34 UTC

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.

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-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 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