
CVE catalog
CVE-2026-50142
libheif: CVE-2026-50142
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.66% · Oct 25, 2026
libheif is a HEIF and AVIF file format decoder and encoder. From 1.19.0 until 1.23.0, a crafted HEIF sequence accepted by heif_context_read_from_memory() with the msf1 sequence brand can cause unbounded heap allocation. In libheif/sequences/seq_boxes.cc, Box_stsz::parse() applies max_sequence_frames only to variable-size samples, so fixed-size mode accepts an attacker-controlled sample_count without a bound. In libheif/sequences/track.cc, Track::load() also adds current_sample_idx and samples_per_chunk in 32-bit arithmetic, allowing the consistency check to be bypassed by wraparound. The resulting values reach the Chunk::Chunk() allocation path, which can consume gigabytes of memory and crash or stall the process through memory exhaustion. This issue is fixed in version 1.23.0.
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 | vulnerable |
| Debian | libheif | bookworm-security | 1.15.1-1+deb12u1 | vulnerable |
| Alpine | libheif | 3.23 | 1.23.0-r0 | fixed |
| Ubuntu | libheif | 25.10 | 1.19.7-1 | vulnerable |
| Ubuntu | libheif | 25.10 | 1.19.8-1 | vulnerable |
| Ubuntu | libheif | 25.10 | 1.20.2-1 | vulnerable |
| Ubuntu | libheif | 25.10 | 1.20.2-1ubuntu0.1 | vulnerable |
| Ubuntu | libheif | 25.10 | 1.20.2-1ubuntu0.3 | vulnerable |
| Ubuntu | libheif | 25.10 | 1.20.2-1ubuntu0.4 | vulnerable |
| Ubuntu | libheif | 25.10 | 1.20.2-1ubuntu0.5 | vulnerable |
| Ubuntu | libheif | 25.10 | 1.20.2-1ubuntu0.6 | 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 | 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 | (unfixed) | not yet assigned | Not reported | Not reported |
| Alpine | libheif | apk | 3.23 | 1.23.0-r0 | Not reported | ALPINE-CVE-2026-50142 | Not reported |
| Ubuntu | libheif | deb | 25.10 | 1.20.2-1ubuntu0.6 | Not reported | UBUNTU-CVE-2026-50142 | Not reported |
| Ubuntu | libheif | deb | 26.04 | 1.21.2-3ubuntu0.3 | Not reported | UBUNTU-CVE-2026-50142 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [heif-gdk-pixbuf]Affected
Source package: [libheif]
Details (6)
1.15.1-1+deb12u1· amd64 · bookwormAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookwormAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.15.1-1+deb12u1· amd64 · bookworm-securityAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookworm-securityAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
- [heif-thumbnailer]Affected
Source package: [libheif]
Details (6)
1.15.1-1+deb12u1· amd64 · bookwormAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookwormAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.15.1-1+deb12u1· amd64 · bookworm-securityAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookworm-securityAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
- [libheif1]Affected
Source package: [libheif]
Details (6)
1.15.1-1+deb12u1· amd64 · bookwormAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookwormAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.15.1-1+deb12u1· amd64 · bookworm-securityAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookworm-securityAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
- [libheif-dev]Affected
Source package: [libheif]
Details (6)
1.15.1-1+deb12u1· amd64 · bookwormAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookwormAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.15.1-1+deb12u1· amd64 · bookworm-securityAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookworm-securityAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
- [libheif-examples]Affected
Source package: [libheif]
Details (6)
1.15.1-1+deb12u1· amd64 · bookwormAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookwormAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.15.1-1+deb12u1· amd64 · bookworm-securityAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookworm-securityAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
- [libheif-plugin-aomdec]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
- [libheif-plugin-aomenc]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
- [libheif-plugin-dav1d]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
- [libheif-plugin-ffmpegdec]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
- [libheif-plugin-j2kdec]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
- [libheif-plugin-j2kenc]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
- [libheif-plugin-jpegdec]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
- [libheif-plugin-jpegenc]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
- [libheif-plugin-libde265]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
- [libheif-plugin-rav1e]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
- [libheif-plugins-all]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
- [libheif-plugin-svtenc]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
- [libheif-plugin-x265]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
dsa · libheif · debian · bookworm; dsa · libheif · debian · 12
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10983-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-50142]
- [https://osv.dev/vulnerability/ALPINE-CVE-2026-50142]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-50142]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-50142]
- [https://security-tracker.debian.org/tracker/CVE-2026-50142]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-50142.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]