CVE-2026-62289
Medium · 4.3CVSS
4.3
EPSS
0.3%
Published
Aug 18, 2026
CISA due date
—
Cloudanix analysis
A specially made image file can make programs that read certain photo formats crash or produce broken pictures until the software is updated.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A crafted HEIF or AVIF file with a clean aperture box triggers double application of image transformations in ImageItem::get_heif_image_tiling and process_image_transformations_on_tiling, causing an integer underflow in Box_clap::left_rounded that produces zero-width tiling or a corrupt crop rectangle, leading to crashes in debug builds or corrupted image data in release builds.
Why it matters to the business
Applications that decode user-supplied HEIF or AVIF images can be forced to crash or produce invalid image output, interrupting image-processing workflows and potentially allowing denial-of-service conditions when processing untrusted media.
How an attack unfolds
An attacker crafts a HEIF or AVIF file containing a clean aperture box that reduces an image dimension to zero, then delivers the file to a target application using libheif 1.23.0 or earlier. When the application calls heif_image_handle_get_image_tiling, the library applies the transformation twice, underflows during crop calculation, and either aborts or returns corrupted tiling data.
How to fix it
Upgrade libheif to version 1.23.1 or later. Rebuild and redeploy any dependent applications or libraries that statically or dynamically link against the vulnerable version.
How to confirm the fix worked
Confirm the installed libheif version is 1.23.1 or newer via package manager or library metadata, then test that a sample crafted file no longer triggers an assertion or produces zero-width tiling results.
Typical attack path
- Attacker creates a malicious HEIF/AVIF file embedding an adverse clean aperture box
- Victim application opens or processes the file with libheif <= 1.23.0
- Library invokes get_heif_image_tiling followed by process_image_transformations_on_tiling
- Underflow produces zero-dimension tiling or corrupt crop, crashing the process or returning invalid data
How to detect it
Monitor application logs for crashes or assertion failures when processing HEIF/AVIF files; inspect any file-handling code paths that invoke heif_image_handle_get_image_tiling for recent invocations on untrusted inputs.
What your security team should do
- Immediately update all instances of libheif to 1.23.1 across build pipelines and runtime environments
- Add dependency scanning rules to block future inclusion of versions <= 1.23.0
- Review any custom image-handling code that calls get_heif_image_tiling and ensure input validation occurs before tiling queries
The record
libheif is a HEIF and AVIF file format decoder and encoder. In 1.23.0 and earlier, a crafted HEIF or AVIF file containing a clean aperture box can reduce an image dimension to zero and crash or corrupt tiling results when heif_image_handle_get_image_tiling(handle, 1, &tiling) is called. ImageItem::get_heif_image_tiling() returns already transformed dimensions, and process_image_transformations_on_tiling() applies the clean aperture transformation again. The second application passes zero to Box_clap::left_rounded(0), where image_width minus one underflows and constructs Fraction(0xFFFFFFFF, 2). Debug builds reach an assertion and abort, while release builds can return a corrupt crop and zero-width tiling result. The affected implementation spans libheif/image-items/image_item.cc, libheif/context.cc, and libheif/box.cc. This issue is fixed in version 1.23.1.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-121727 Kore before 4.3.0 contains an integer underflow vulnerability in HTTP request body… CWE-191
- CVE-2026-61497 TinyUSB before 0.20.1 contains an integer underflow vulnerability in the HID host report… CWE-191
- CVE-2026-120060 psqlODBC trusts counts and lengths in server data in three places. CWE-191
- CVE-2026-120058 psqlODBC sizes its row cache from the column count of a cursor's first result, but… CWE-191
- CVE-2026-20576 In afe, there is a possible out of bounds write due to a missing bounds check. CWE-191
- CVE-2026-20572 In adsp, there is a possible out of bounds write due to an integer overflow. CWE-191
- CVE-2026-111735 P-Net before 1.0.3 contains an integer underflow in pf_cpm_c_data_ind(). CWE-191
- CVE-2026-103411 An Integer Underflow vulnerability in DhcpMessageDecoder in Juniper Networks Session… CWE-191