CVE catalog

CVE-2026-62377

libheif is a HEIF and AVIF file format decoder and encoder. In 1.23.0 and earlier, a crafted HEIF sequence accepted by heif_context_read_from_memory() can leave the context with no registered sequence

[CVE catalog]

Severity
Medium · CVSS 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.41% · Oct 25, 2026

libheif is a HEIF and AVIF file format decoder and encoder. In 1.23.0 and earlier, a crafted HEIF sequence accepted by heif_context_read_from_memory() can leave the context with no registered sequence tracks and crash when heif_context_get_track(ctx, 0) is called. HeifContext::get_track() in libheif/context.cc executes assert(has_sequence()) before its normal error handling, so assert-enabled builds abort instead of allowing the public wrapper in libheif/api/libheif/heif_sequences.cc to return null. In release builds, removing the assertion lets the track_id zero path dereference m_tracks.begin()->second on an empty map, which is undefined behavior and typically crashes. The issue is reachable through documented public APIs after parsing attacker-controlled bytes. 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.

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+deb12u1not affected
Debianlibheifbookworm-security1.15.1-1+deb12u1not affected
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.3vulnerable
Ubuntulibheif26.041.21.2-3ubuntu0.4vulnerable
Ubuntulibheif26.041.21.2-3ubuntu0.5fixed

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
DebianlibheifsourcebookwormNot affectedunimportantNot reportedNot reported
Ubuntulibheifdeb26.041.21.2-3ubuntu0.5Not reportedUBUNTU-CVE-2026-62377Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [heif-gdk-pixbuf]Not affected

    Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

    • 1.15.1-1+deb12u1 · arm64 · bookworm

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

  • [heif-thumbnailer]Not affected

    Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

    • 1.15.1-1+deb12u1 · arm64 · bookworm

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

  • [libheif1]Not affected

    Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

    • 1.15.1-1+deb12u1 · arm64 · bookworm

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

  • [libheif-dev]Not affected

    Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

    • 1.15.1-1+deb12u1 · arm64 · bookworm

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

  • [libheif-examples]Not affected

    Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

    • 1.15.1-1+deb12u1 · arm64 · bookworm

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

  • [libheif-plugin-aomdec]Not affected

    Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

  • [libheif-plugin-aomenc]Not affected

    Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

  • [libheif-plugin-dav1d]Not affected

    Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

  • Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

  • [libheif-plugin-j2kdec]Not affected

    Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

  • [libheif-plugin-j2kenc]Not affected

    Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

  • Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

  • Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

  • Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

  • [libheif-plugin-rav1e]Not affected

    Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

  • [libheif-plugins-all]Not affected

    Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

  • [libheif-plugin-svtenc]Not affected

    Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

  • [libheif-plugin-x265]Not affected

    Source package: [libheif]

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

      Not affected

      nvd · libheif · debian · bookworm

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

      Not affected

      nvd · libheif · debian · bookworm

Observed:

References