CVE catalog

CVE-2026-32741

libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and below contain a heap buffer overflow in MaskImageCodec::decode_mask_image(). When decoding a HEIF file containing a mask

[CVE catalog]

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

libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and below contain a heap buffer overflow in MaskImageCodec::decode_mask_image(). When decoding a HEIF file containing a mask image (mski), the function copies the full iloc extent data into a pixel buffer using memcpy(dst, data.data(), data.size()). The copy length data.size() is determined by the iloc extent in the file (attacker-controlled), while the destination buffer is sized based on the declared image dimensions. Because no upper-bound check exists on the data length, a crafted file whose iloc extent exceeds the pixel buffer allocation overflows the heap. The vulnerable single-memcpy branch is reached when the mskC property specifies bits_per_pixel = 8 and the ispe property declares an even width ≥ 64 (so that stride == width), with no changes to default security limits or external codec plugins required. This issue has been fixed in version 1.22.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+deb13u1fixed
Debianlibheiftrixie-security1.23.6-2~deb13u1fixed
Debianlibheifbookworm1.15.1-1+deb12u1vulnerable
Debianlibheifbookworm-security1.15.1-1+deb12u1vulnerable
CpelibheifNot reported1.17.6-1ubuntu4.4fixed
Cpeheif-gdk-pixbufNot reported1.17.6-1ubuntu4.4fixed
Cpeheif-thumbnailerNot reported1.17.6-1ubuntu4.4fixed
Cpelibheif-devNot reported1.17.6-1ubuntu4.4fixed
Cpelibheif-examplesNot reported1.17.6-1ubuntu4.4fixed
Cpelibheif-plugin-aomdecNot reported1.17.6-1ubuntu4.4fixed
Cpelibheif-plugin-aomencNot reported1.17.6-1ubuntu4.4fixed
Cpelibheif-plugin-dav1dNot reported1.17.6-1ubuntu4.4fixed
Cpelibheif-plugin-ffmpegdecNot reported1.17.6-1ubuntu4.4fixed
Cpelibheif-plugin-j2kdecNot reported1.17.6-1ubuntu4.4fixed
Cpelibheif-plugin-j2kencNot reported1.17.6-1ubuntu4.4fixed
Cpelibheif-plugin-jpegdecNot reported1.17.6-1ubuntu4.4fixed
Cpelibheif-plugin-jpegencNot reported1.17.6-1ubuntu4.4fixed
Cpelibheif-plugin-libde265Not reported1.17.6-1ubuntu4.4fixed
Cpelibheif-plugin-rav1eNot reported1.17.6-1ubuntu4.4fixed
Cpelibheif-plugin-svtencNot reported1.17.6-1ubuntu4.4fixed
Cpelibheif-plugin-x265Not reported1.17.6-1ubuntu4.4fixed
Cpelibheif1Not reported1.17.6-1ubuntu4.4fixed
CpelibheifNot reportedNot reportedvulnerable
Ubuntulibheif24.041.16.2-2ubuntu1vulnerable
Ubuntulibheif24.041.17.1-1ubuntu2vulnerable
Ubuntulibheif24.041.17.1-1ubuntu3vulnerable
Ubuntulibheif24.041.17.4-1ubuntu1vulnerable
Ubuntulibheif24.041.17.6-1ubuntu1vulnerable
Ubuntulibheif24.041.17.6-1ubuntu2vulnerable
Ubuntulibheif24.041.17.6-1ubuntu3vulnerable
Ubuntulibheif24.041.17.6-1ubuntu4vulnerable
Ubuntulibheif24.041.17.6-1ubuntu4.1vulnerable
Ubuntulibheif24.041.17.6-1ubuntu4.2vulnerable
Ubuntulibheif24.041.17.6-1ubuntu4.3vulnerable
Ubuntulibheif24.041.17.6-1ubuntu4.4fixed
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.4fixed
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.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibheifsourcesid1.23.1-1not yet assignedNot reported[1137524]
Debianlibheifsourceforky1.23.1-1not yet assignedNot reported[1137524]
Debianlibheifsourcetrixie1.19.8-1+deb13u1not yet assignedNot reported[1137524]
Debianlibheifsourcebookworm(unfixed)not yet assignedNot reported[1137524]
CpelibheifcpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Cpeheif-gdk-pixbufcpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Cpeheif-thumbnailercpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Cpelibheif-devcpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Cpelibheif-examplescpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Cpelibheif-plugin-aomdeccpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Cpelibheif-plugin-aomenccpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Cpelibheif-plugin-dav1dcpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Cpelibheif-plugin-ffmpegdeccpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Cpelibheif-plugin-j2kdeccpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Cpelibheif-plugin-j2kenccpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Cpelibheif-plugin-jpegdeccpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Cpelibheif-plugin-jpegenccpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Cpelibheif-plugin-libde265cpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Cpelibheif-plugin-rav1ecpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Cpelibheif-plugin-svtenccpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Cpelibheif-plugin-x265cpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Cpelibheif1cpeNot reported1.17.6-1ubuntu4.4Not reportedNot reportedNot reported
Ubuntulibheifdeb24.041.17.6-1ubuntu4.4Not reportedUBUNTU-CVE-2026-32741Not reported
Ubuntulibheifdeb25.101.20.2-1ubuntu0.4Not reportedUBUNTU-CVE-2026-32741Not reported
Ubuntulibheifdeb26.041.21.2-3ubuntu0.1Not reportedUBUNTU-CVE-2026-32741Not reported

[Debian bug #1137524]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [heif-gdk-pixbuf]Affected

    Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

    • 1.15.1-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

  • Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

    • 1.15.1-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

  • [libheif1]Affected

    Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

    • 1.15.1-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

  • [libheif-dev]Affected

    Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

    • 1.15.1-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

  • Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

    • 1.15.1-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

  • Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

  • Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

  • Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

  • Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

  • Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

  • Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

  • Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

  • Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

  • Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

  • Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

  • Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

  • Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

  • Source package: [libheif]

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

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

      Affected

      nvd · libheif · debian · bookworm; nvd · libheif · debian · 12

[Debian 13 (Trixie)]

  • [heif-gdk-pixbuf]Affected

    Source package: [libheif]

    Details (6)
    • 1.19.8-1 · amd64 · trixie

      Affected · Fixed: 1.19.8-1+deb13u1

      nvd · libheif · debian · 13

    • 1.19.8-1 · arm64 · trixie

      Affected · Fixed: 1.19.8-1+deb13u1

      nvd · libheif · debian · 13

    • 1.19.8-1+deb13u1 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 1.19.8-1+deb13u1

      nvd · libheif · debian · 13

    • 1.19.8-1+deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 1.19.8-1+deb13u1

      nvd · libheif · debian · 13

    • 1.23.4-1~deb13u1 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 1.19.8-1+deb13u1

      nvd · libheif · debian · 13

    • 1.23.6-2~deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 1.19.8-1+deb13u1

      nvd · libheif · debian · 13

  • Source package: [libheif]

    Details (6)
    • 1.19.8-1 · amd64 · trixie

      Affected · Fixed: 1.19.8-1+deb13u1

      nvd · libheif · debian · 13

    • 1.19.8-1 · arm64 · trixie

      Affected · Fixed: 1.19.8-1+deb13u1

      nvd · libheif · debian · 13

    • 1.19.8-1+deb13u1 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 1.19.8-1+deb13u1

      nvd · libheif · debian · 13

    • 1.19.8-1+deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 1.19.8-1+deb13u1

      nvd · libheif · debian · 13

    • 1.23.4-1~deb13u1 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 1.19.8-1+deb13u1

      nvd · libheif · debian · 13

    • 1.23.6-2~deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 1.19.8-1+deb13u1

      nvd · libheif · debian · 13

Next results

Observed:

References