---
title: "CVE-2026-32741"
canonical_url: "https://pkgseek.com/security/CVE-2026-32741"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# 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 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…

CVE-2026-32741 is rated HIGH (7.1), with 7 indexed affected package builds across 1 distributions.

- **Severity / Score**: HIGH (7.1)
- **Affected builds**: 7
- **Affected distros**: 1
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Ubuntu | noble | heif-gdk-pixbuf | 1.17.6-1ubuntu4 | — |
| Ubuntu | noble | heif-thumbnailer | 1.17.6-1ubuntu4 | — |
| Ubuntu | noble | libheif1 | 1.17.6-1ubuntu4 | — |
| Ubuntu | noble | libheif-examples | 1.17.6-1ubuntu4 | — |
| Ubuntu | noble | libheif-plugin-aomdec | 1.17.6-1ubuntu4 | — |
| Ubuntu | noble | libheif-plugin-aomenc | 1.17.6-1ubuntu4 | — |
| Ubuntu | noble | libheif-plugin-libde265 | 1.17.6-1ubuntu4 | — |
