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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-18 · Modified: 2026-08-19
- Aliases: UBUNTU-CVE-2026-62289, DEBIAN-CVE-2026-62289
- Record: https://cvemate.com/vulnerability/CVE-2026-62289 · JSON: https://cvemate.com/vulnerability/CVE-2026-62289/json

## Description

```text
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.
```

## Signals

- CVSS: 4.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
- EPSS: 0.302%, percentile 24.659%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libheif (Debian): All versions (No fix recorded) \| \< 1.19.8-1+deb13u1 \| \< 1.23.1-1
- ubuntu libheif (Ubuntu): \< 1.1.0-2ubuntu0.1~esm4 \| \< 1.6.1-1ubuntu0.1~esm4 \| \< 1.12.0-2ubuntu0.1~esm4 \| \< 1.17.6-1ubuntu4.7 \| \< 1.21.2-3ubuntu0.4
- strukturag libheif: \< 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>
- <https://ubuntu.com/security/CVE-2026-62289>
- <https://www.cve.org/CVERecord?id=CVE-2026-62289>
- <https://ubuntu.com/security/notices/USN-8649-1>
- <https://ubuntu.com/security/notices/USN-8683-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-62289>

---

Data as of 2026-12-05T09:59:50.403Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
