CVE-2026-32741: libheif is a HEIF and AVIF file format decoder and encoder
Affects libheifSource GCVE Database
Not known to be exploited · CVSS 7.1 High · fixed in 1.17.6-1ubuntu4.4 : patch libheif soon.
Data as of 24 Nov 2026, 21:15 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 40% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.17.6-1ubuntu4.4, 1.20.2-1ubuntu0.4, 1.21.2-3ubuntu0.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:HExploitation evidence
Disclosed: evidence found.
CVE published 19 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade the Ubuntu libheif to 1.17.6-1ubuntu4.4 (package) or 1.20.2-1ubuntu0.4 (package) or 1.21.2-3ubuntu0.1 (package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSlibheifpkg:deb/ubuntu/libheif?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10libheifpkg:deb/ubuntu/libheif?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlibheifpkg:deb/ubuntu/libheif?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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.
References
- ubuntu.com/security/CVE-2026-32741 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-32741 (opens in a new tab)
- github.com/strukturag/libheif/releases/tag/v1.22.0 (opens in a new tab)
- github.com/strukturag/libheif/security/advisories/GHSA-j3w5-7whq-p37q (opens in a new tab)
- ubuntu.com/security/notices/USN-8454-1 (opens in a new tab)