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

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-08-18T21:19:18.107Z
- Modified: 2026-10-22T16:09:59.560Z
- Weaknesses: CWE-191, CWE-617
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

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

## Sources

- CVE List: [CVE-2026-62289](https://www.cve.org/CVERecord?id=CVE-2026-62289), CVE Terms of Use, modified 2026-08-19
- NVD: [CVE-2026-62289](https://nvd.nist.gov/vuln/detail/CVE-2026-62289), Public domain, modified 2026-10-22

---

Page: https://cve.day/CVE-2026-62289 · Whole record: https://cve.day/CVE-2026-62289.json · Rebuilt by cve.day 2026-11-25T22:59:33.883Z
