CVE-2026-32814libheif: Uninitialized Heap Memory Information Leak via Failed Grid Tiles
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, when decoding a HEIF grid image with strict_decoding=false (the default), a corrupted tile silently fails to decode and the library returns heif_error_Ok with no indication of failure, leading to an uninitialized heap memory information leak. The canvas is allocated via create_clone_image_at_new_size() → plane.alloc() → new (std::nothrow) uint8_t[allocation_size] which does not zero the memory; only the alpha plane is explicitly initialized via fill_plane(), so the Y, Cb, and Cr planes contain whatever was previously at that heap address. The failed tile's region of the canvas is never written. It retains uninitialized heap data that is delivered to the caller as decoded pixel values (4,096 bytes per Y/Cb/Cr plane = 12,288+ bytes total). Any application using libheif to decode grid-based HEIF/AVIF files with default settings is vulnerable: a crafted .heic or .avif file causes 4,096+ bytes of heap memory to appear as pixel values in the decoded image, and the calling application receives heif_error_Ok, so it has no indication the output contains heap garbage. In server-side image processing, an uploaded crafted HEIF decoded and re-encoded (e.g., as PNG/JPEG for thumbnails, CDN, social media) can leak cross-user data such as auth tokens, database results, and other users' image data. This issue has been fixed in version 1.22.0.
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.1 | UBUNTU-CVE-2026-32814 |
| Ubuntu 25.10 | libheif | Fixed | 1.20.2-1ubuntu0.4 | UBUNTU-CVE-2026-32814 |
| Ubuntu 24.04 | libheif | Fixed | 1.17.6-1ubuntu4.4 | UBUNTU-CVE-2026-32814 |
| Ubuntu 22.04 | libheif | Fix pending | 1.12.0-2ubuntu0.1~esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-32814 |
| Ubuntu 20.04 | libheif | Fix pending | 1.6.1-1ubuntu0.1~esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-32814 |
| Debian 14 | libheif | Fixed | 1.23.1-1 | DEBIAN-CVE-2026-32814 |
| Red Hat Enterprise Linux 10 | glycin-loaders | Not affected |
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.22.0
References
- https://github.com/strukturag/libheif/security/advisories/GHSA-4m8r-34pg-rvwc
- https://github.com/strukturag/libheif/releases/tag/v1.22.0
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.