CVEfocus › CVE database › CVE-2026-62289

CVE-2026-62289libheif: Integer underflow in Fraction constructor via double clap transform application

CVSS 4.3 MediumEPSS 0.4% (higher than 26% of CVEs)Published 2026-08-18Updated 2026-08-19Assigner: GitHub_M

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.

CWE-191CWE-617

What to do

Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
3Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04libheifFixed1.21.2-3ubuntu0.4UBUNTU-CVE-2026-62289
Ubuntu 24.04libheifFixed1.17.6-1ubuntu4.7UBUNTU-CVE-2026-62289
Ubuntu 22.04libheifFix pending1.12.0-2ubuntu0.1~esm4 (Ubuntu Pro)UBUNTU-CVE-2026-62289
Ubuntu 20.04libheifFix pending1.6.1-1ubuntu0.1~esm4 (Ubuntu Pro)UBUNTU-CVE-2026-62289
Ubuntu 18.04libheifFix pending1.1.0-2ubuntu0.1~esm4 (Ubuntu Pro)UBUNTU-CVE-2026-62289
Debian 14libheifFixed1.23.1-1DEBIAN-CVE-2026-62289
Debian 13libheifFixed1.19.8-1+deb13u1DEBIAN-CVE-2026-62289

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.