Vulnerability · Published Jul 21, 2026 · Assigned by GitHub_M
CVE-2026-47714libheif has integer overflow in inline mask size calculation that causes undersized buffer allocation
Medium 6.1
In plain English
A medium-severity integer overflow in libheif from strukturag. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libheif | no fix listed | DEBIAN-CVE-2026-47714 |
| Debian:13 | libheif | 1.19.8-1+deb13u1 | DEBIAN-CVE-2026-47714 |
| Debian:14 | libheif | 1.23.1-1 | DEBIAN-CVE-2026-47714 |
| Ubuntu:24.04:LTS | libheif | 1.17.6-1ubuntu4.6 | UBUNTU-CVE-2026-47714 |
| Ubuntu:25.10 | libheif | 1.20.2-1ubuntu0.6 | UBUNTU-CVE-2026-47714 |
| Ubuntu:26.04:LTS | libheif | 1.21.2-3ubuntu0.3 | UBUNTU-CVE-2026-47714 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| strukturag | libheif | < 1.22.0 |
Weakness: CWE-190 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
References
- https://github.com/strukturag/libheif/security/advisories/GHSA-h4wm-6wwf-qvhx x_refsource_CONFIRM