CVE catalog

CVE-2026-50142

libheif: CVE-2026-50142

[CVE catalog]

Severity
High · CVSS 7.5CVSS: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.

DistributionPackageReleaseVersionStatus
Debianlibheifsid1.23.6-2fixed
Debianlibheifforky1.23.6-2fixed
Debianlibheiftrixie1.19.8-1+deb13u1not affected
Debianlibheiftrixie-security1.23.6-2~deb13u1not affected
Debianlibheifbookworm1.15.1-1+deb12u1vulnerable
Debianlibheifbookworm-security1.15.1-1+deb12u1vulnerable
Alpinelibheif3.231.23.0-r0fixed
Ubuntulibheif25.101.19.7-1vulnerable
Ubuntulibheif25.101.19.8-1vulnerable
Ubuntulibheif25.101.20.2-1vulnerable
Ubuntulibheif25.101.20.2-1ubuntu0.1vulnerable
Ubuntulibheif25.101.20.2-1ubuntu0.3vulnerable
Ubuntulibheif25.101.20.2-1ubuntu0.4vulnerable
Ubuntulibheif25.101.20.2-1ubuntu0.5vulnerable
Ubuntulibheif25.101.20.2-1ubuntu0.6fixed
Ubuntulibheif26.041.20.2-1vulnerable
Ubuntulibheif26.041.20.2-2vulnerable
Ubuntulibheif26.041.20.2-2build1vulnerable
Ubuntulibheif26.041.20.2-2build2vulnerable
Ubuntulibheif26.041.20.2-2ubuntu1vulnerable
Ubuntulibheif26.041.21.2-1vulnerable
Ubuntulibheif26.041.21.2-3vulnerable
Ubuntulibheif26.041.21.2-3ubuntu0.1vulnerable
Ubuntulibheif26.041.21.2-3ubuntu0.2vulnerable
Ubuntulibheif26.041.21.2-3ubuntu0.3fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibheifsourcesid1.23.1-1not yet assignedNot reportedNot reported
Debianlibheifsourceforky1.23.1-1not yet assignedNot reportedNot reported
DebianlibheifsourcetrixieNot affectedunimportantNot reportedNot reported
Debianlibheifsourcebookworm(unfixed)not yet assignedNot reportedNot reported
Alpinelibheifapk3.231.23.0-r0Not reportedALPINE-CVE-2026-50142Not reported
Ubuntulibheifdeb25.101.20.2-1ubuntu0.6Not reportedUBUNTU-CVE-2026-50142Not reported
Ubuntulibheifdeb26.041.21.2-3ubuntu0.3Not reportedUBUNTU-CVE-2026-50142Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [heif-gdk-pixbuf]Affected

    Source package: [libheif]

    Details (6)
    • 1.15.1-1+deb12u1 · amd64 · bookworm

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.15.1-1+deb12u1 · arm64 · bookworm

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.15.1-1+deb12u1 · amd64 · bookworm-security

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.15.1-1+deb12u1 · arm64 · bookworm-security

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

  • Source package: [libheif]

    Details (6)
    • 1.15.1-1+deb12u1 · amd64 · bookworm

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.15.1-1+deb12u1 · arm64 · bookworm

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.15.1-1+deb12u1 · amd64 · bookworm-security

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.15.1-1+deb12u1 · arm64 · bookworm-security

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

  • [libheif1]Affected

    Source package: [libheif]

    Details (6)
    • 1.15.1-1+deb12u1 · amd64 · bookworm

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.15.1-1+deb12u1 · arm64 · bookworm

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.15.1-1+deb12u1 · amd64 · bookworm-security

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.15.1-1+deb12u1 · arm64 · bookworm-security

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

  • [libheif-dev]Affected

    Source package: [libheif]

    Details (6)
    • 1.15.1-1+deb12u1 · amd64 · bookworm

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.15.1-1+deb12u1 · arm64 · bookworm

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.15.1-1+deb12u1 · amd64 · bookworm-security

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.15.1-1+deb12u1 · arm64 · bookworm-security

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

  • Source package: [libheif]

    Details (6)
    • 1.15.1-1+deb12u1 · amd64 · bookworm

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.15.1-1+deb12u1 · arm64 · bookworm

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.15.1-1+deb12u1 · amd64 · bookworm-security

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.15.1-1+deb12u1 · arm64 · bookworm-security

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

  • Source package: [libheif]

    Details (2)
    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

  • Source package: [libheif]

    Details (2)
    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

  • Source package: [libheif]

    Details (2)
    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

  • Source package: [libheif]

    Details (2)
    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

  • Source package: [libheif]

    Details (2)
    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

  • Source package: [libheif]

    Details (2)
    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

  • Source package: [libheif]

    Details (2)
    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

  • Source package: [libheif]

    Details (2)
    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

  • Source package: [libheif]

    Details (2)
    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

  • Source package: [libheif]

    Details (2)
    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

  • Source package: [libheif]

    Details (2)
    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

  • Source package: [libheif]

    Details (2)
    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

  • Source package: [libheif]

    Details (2)
    • 1.19.7-1~bpo12+1 · amd64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

    • 1.19.7-1~bpo12+1 · arm64 · bookworm-backports

      Affected

      dsa · libheif · debian · bookworm; dsa · libheif · debian · 12

Observed:

References