
CVE catalog
CVE-2026-62291
libheif is a HEIF and AVIF file format decoder and encoder. In 1.23.0 and earlier, a crafted image sequence with a 2x2 primary plane and a 256x256 auxiliary alpha plane can cause attacker-controlled h
- Severity
- High · CVSS 8.7
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.19% · Oct 25, 2026
libheif is a HEIF and AVIF file format decoder and encoder. In 1.23.0 and earlier, a crafted image sequence with a 2x2 primary plane and a 256x256 auxiliary alpha plane can cause attacker-controlled heap corruption during a normal decode and re-encode workflow. Track_Visual::decode_next_image_sample() calls transfer_channel_from_image_as() without checking that the auxiliary alpha dimensions match the main frame. The resulting inconsistent image reaches heif_track_decode_next_image() and then heif_context_encode_image(). In unc_encoder::encode(), unc_encoder_component_interleave::encode_tile() sizes its buffer with compute_tile_data_size_bytes() using the primary dimensions but copies each component using its actual plane dimensions. The oversized alpha plane is therefore copied beyond the allocation, causing an out-of-bounds write; the inverse size mismatch can also produce an out-of-bounds read. This issue is fixed in version 1.23.1.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libheif | sid | 1.23.6-2 | fixed |
| Debian | libheif | forky | 1.23.6-2 | fixed |
| Debian | libheif | trixie | 1.19.8-1+deb13u1 | not affected |
| Debian | libheif | trixie-security | 1.23.6-2~deb13u1 | not affected |
| Debian | libheif | bookworm | 1.15.1-1+deb12u1 | not affected |
| Debian | libheif | bookworm-security | 1.15.1-1+deb12u1 | not affected |
| Ubuntu | libheif | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | heif-gdk-pixbuf | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | heif-thumbnailer | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | libheif-dev | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | libheif-examples | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | libheif-plugin-aomdec | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | libheif-plugin-aomenc | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | libheif-plugin-dav1d | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | libheif-plugin-ffmpegdec | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | libheif-plugin-j2kdec | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | libheif-plugin-j2kenc | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | libheif-plugin-jpegdec | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | libheif-plugin-jpegenc | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | libheif-plugin-libde265 | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | libheif-plugin-rav1e | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | libheif-plugin-svtenc | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | libheif-plugin-x265 | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | libheif1 | noble | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | libheif | 26.04 | 1.20.2-1 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.20.2-2 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.20.2-2build1 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.20.2-2build2 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.20.2-2ubuntu1 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.21.2-1 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.21.2-3 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.21.2-3ubuntu0.1 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.21.2-3ubuntu0.2 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.21.2-3ubuntu0.3 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.21.2-3ubuntu0.4 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.21.2-3ubuntu0.5 | fixed |
| Ubuntu | libheif | 24.04 | 1.16.2-2ubuntu1 | vulnerable |
| Ubuntu | libheif | 24.04 | 1.17.1-1ubuntu2 | vulnerable |
| Ubuntu | libheif | 24.04 | 1.17.1-1ubuntu3 | vulnerable |
| Ubuntu | libheif | 24.04 | 1.17.4-1ubuntu1 | vulnerable |
| Ubuntu | libheif | 24.04 | 1.17.6-1ubuntu1 | vulnerable |
| Ubuntu | libheif | 24.04 | 1.17.6-1ubuntu2 | vulnerable |
| Ubuntu | libheif | 24.04 | 1.17.6-1ubuntu3 | vulnerable |
| Ubuntu | libheif | 24.04 | 1.17.6-1ubuntu4 | vulnerable |
| Ubuntu | libheif | 24.04 | 1.17.6-1ubuntu4.1 | vulnerable |
| Ubuntu | libheif | 24.04 | 1.17.6-1ubuntu4.2 | vulnerable |
| Ubuntu | libheif | 24.04 | 1.17.6-1ubuntu4.3 | vulnerable |
| Ubuntu | libheif | 24.04 | 1.17.6-1ubuntu4.4 | vulnerable |
| Ubuntu | libheif | 24.04 | 1.17.6-1ubuntu4.5 | vulnerable |
| Ubuntu | libheif | 24.04 | 1.17.6-1ubuntu4.6 | vulnerable |
| Ubuntu | libheif | 24.04 | 1.17.6-1ubuntu4.7 | vulnerable |
| Ubuntu | libheif | 24.04 | 1.17.6-1ubuntu4.8 | fixed |
| Ubuntu | libheif | 26.04 | 1.20.2-1 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.20.2-2 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.20.2-2build1 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.20.2-2build2 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.20.2-2ubuntu1 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.21.2-1 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.21.2-3 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.21.2-3ubuntu0.1 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.21.2-3ubuntu0.2 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.21.2-3ubuntu0.3 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.21.2-3ubuntu0.4 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.21.2-3ubuntu0.5 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libheif | source | sid | 1.23.1-1 | not yet assigned | Not reported | Not reported |
| Debian | libheif | source | forky | 1.23.1-1 | not yet assigned | Not reported | Not reported |
| Debian | libheif | source | trixie | Not affected | unimportant | Not reported | Not reported |
| Debian | libheif | source | bookworm | Not affected | unimportant | Not reported | Not reported |
| Ubuntu | libheif | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | heif-gdk-pixbuf | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | heif-thumbnailer | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | libheif-dev | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | libheif-examples | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | libheif-plugin-aomdec | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | libheif-plugin-aomenc | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | libheif-plugin-dav1d | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | libheif-plugin-ffmpegdec | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | libheif-plugin-j2kdec | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | libheif-plugin-j2kenc | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | libheif-plugin-jpegdec | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | libheif-plugin-jpegenc | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | libheif-plugin-libde265 | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | libheif-plugin-rav1e | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | libheif-plugin-svtenc | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | libheif-plugin-x265 | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | libheif1 | deb | noble | 1.17.6-1ubuntu4.8 | Not reported | Not reported | Not reported |
| Ubuntu | libheif | deb | 26.04 | 1.21.2-3ubuntu0.5 | Not reported | USN-8774-1 | Not reported |
| Ubuntu | libheif | deb | 24.04 | 1.17.6-1ubuntu4.8 | Not reported | UBUNTU-CVE-2026-62291 | Not reported |
| Ubuntu | libheif | deb | 26.04 | 1.21.2-3ubuntu0.5 | Not reported | UBUNTU-CVE-2026-62291 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [heif-gdk-pixbuf]Not affected
Source package: [libheif]
Details (6)
1.15.1-1+deb12u1· amd64 · bookwormNot affected
nvd · libheif · debian · bookworm
1.15.1-1+deb12u1· arm64 · bookwormNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.15.1-1+deb12u1· amd64 · bookworm-securityNot affected
nvd · libheif · debian · bookworm
1.15.1-1+deb12u1· arm64 · bookworm-securityNot affected
nvd · libheif · debian · bookworm
- [heif-thumbnailer]Not affected
Source package: [libheif]
Details (6)
1.15.1-1+deb12u1· amd64 · bookwormNot affected
nvd · libheif · debian · bookworm
1.15.1-1+deb12u1· arm64 · bookwormNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.15.1-1+deb12u1· amd64 · bookworm-securityNot affected
nvd · libheif · debian · bookworm
1.15.1-1+deb12u1· arm64 · bookworm-securityNot affected
nvd · libheif · debian · bookworm
- [libheif1]Not affected
Source package: [libheif]
Details (6)
1.15.1-1+deb12u1· amd64 · bookwormNot affected
nvd · libheif · debian · bookworm
1.15.1-1+deb12u1· arm64 · bookwormNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.15.1-1+deb12u1· amd64 · bookworm-securityNot affected
nvd · libheif · debian · bookworm
1.15.1-1+deb12u1· arm64 · bookworm-securityNot affected
nvd · libheif · debian · bookworm
- [libheif-dev]Not affected
Source package: [libheif]
Details (6)
1.15.1-1+deb12u1· amd64 · bookwormNot affected
nvd · libheif · debian · bookworm
1.15.1-1+deb12u1· arm64 · bookwormNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.15.1-1+deb12u1· amd64 · bookworm-securityNot affected
nvd · libheif · debian · bookworm
1.15.1-1+deb12u1· arm64 · bookworm-securityNot affected
nvd · libheif · debian · bookworm
- [libheif-examples]Not affected
Source package: [libheif]
Details (6)
1.15.1-1+deb12u1· amd64 · bookwormNot affected
nvd · libheif · debian · bookworm
1.15.1-1+deb12u1· arm64 · bookwormNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.15.1-1+deb12u1· amd64 · bookworm-securityNot affected
nvd · libheif · debian · bookworm
1.15.1-1+deb12u1· arm64 · bookworm-securityNot affected
nvd · libheif · debian · bookworm
- [libheif-plugin-aomdec]Not affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
- [libheif-plugin-aomenc]Not affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
- [libheif-plugin-dav1d]Not affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
- [libheif-plugin-ffmpegdec]Not affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
- [libheif-plugin-j2kdec]Not affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
- [libheif-plugin-j2kenc]Not affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
- [libheif-plugin-jpegdec]Not affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
- [libheif-plugin-jpegenc]Not affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
- [libheif-plugin-libde265]Not affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
- [libheif-plugin-rav1e]Not affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
- [libheif-plugins-all]Not affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
- [libheif-plugin-svtenc]Not affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
- [libheif-plugin-x265]Not affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
1.19.7-1~bpo12+1· arm64 · bookworm-backportsNot affected
nvd · libheif · debian · bookworm
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11416-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-62291]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-62291]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-62291]
- [https://osv.dev/vulnerability/USN-8774-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-62291]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-62291.json]
- [https://ubuntu.com/security/notices/USN-8683-1]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]