CVE-2026-32741strukturag libheif
High 7.1 No auth needed
Follow: this CVE · strukturag · strukturag libheif We alert you by email or Slack (account required).
- Priority
- 58
- CVSS 3.1
- 7.1
- EPSS
- —
- Auth required
- No
- Published
- May 19, 2026
- Updated
- Jul 24, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
What happens
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.
What to do
- Apply the vendor's security update for libheif.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- strukturag · libheif
- Red Hat · Red Hat Enterprise Linux 10
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Security update for libheif · SUSE · SUSE-SU-2026:2622-1 · Jun 24, 2026 High
- Security update for libheif · SUSE · openSUSE-SU-2026:20974-1 · Jun 17, 2026 High
- Security update for libheif · SUSE · SUSE-SU-2026:22153-1 · Jun 17, 2026 High
Also: SUSE (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.