CVE-2026-62289libheif: Integer underflow in Fraction constructor via double clap transform application
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libheif | Fixed | 1.21.2-3ubuntu0.4 | UBUNTU-CVE-2026-62289 |
| Ubuntu 24.04 | libheif | Fixed | 1.17.6-1ubuntu4.7 | UBUNTU-CVE-2026-62289 |
| Ubuntu 22.04 | libheif | Fix pending | 1.12.0-2ubuntu0.1~esm4 (Ubuntu Pro) | UBUNTU-CVE-2026-62289 |
| Ubuntu 20.04 | libheif | Fix pending | 1.6.1-1ubuntu0.1~esm4 (Ubuntu Pro) | UBUNTU-CVE-2026-62289 |
| Ubuntu 18.04 | libheif | Fix pending | 1.1.0-2ubuntu0.1~esm4 (Ubuntu Pro) | UBUNTU-CVE-2026-62289 |
| Debian 14 | libheif | Fixed | 1.23.1-1 | DEBIAN-CVE-2026-62289 |
| Debian 13 | libheif | Fixed | 1.19.8-1+deb13u1 | DEBIAN-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.
- strukturag libheif: affected: < 1.23.1
References
- https://github.com/strukturag/libheif/security/advisories/GHSA-jc8f-p23p-5hjg
- https://github.com/strukturag/libheif/commit/f01870c1d7323a3003796d58eba7fff502be994c
- https://github.com/strukturag/libheif/releases/tag/v1.23.1
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.