Medium severity · published Jul 21, 2026
CVE-2026-47714
libheif has integer overflow in inline mask size calculation that causes undersized buffer allocation
6.1
CVSS
0.2%
EPSS
No
On KEV
Description
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, the inline mask parsing code in `libheif/region.cc` contains an integer overflow. Both `width` and `height` are `unsigned int` (32-bit) values parsed from the HEIF file. Their product can exceed `UINT32_MAX`, wrapping to a small value before the division by 8. This causes an undersized buffer allocation, leading to out-of-bounds memory access when the mask data is later interpreted as a `width x height` bitmap. Version 1.22.0 patches the issue.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 4% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LI
libheif · strukturag
< 1.22.0 · source: vendor, NVD
Affected product
LI
libheif
strukturag
More from libheif
9.8
CVE-2026-84383
libheif: Heap buffer overflow in `scale_nearest_neighbor()` via duplicate Alpha planes from nested `iden`/`auxl` items
8.8
CVE-2026-32740
libheif: Heap-Buffer-Overflow Write in Grid Tile Chroma Compositing
8.7
CVE-2026-62292
libheif: Out-of-bounds read in uncompressed unci tile range slicing
8.1
CVE-2026-41071
libheif: Heap buffer over-read in SampleAuxInfoReader via crafted HEIF sequence file with mismatched saiz sample count
7.8
CVE-2026-47178
libheif has Heap Out Of Bounds Write in unci subsystem