What’s Vulnerable › Vulnerabilities
CVE-2026-49271: libheif: Wrapped icef compressed-unit range check causes out-of-bounds read in uncompressed HEIF decoder
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-06-19 · updated 2026-10-25
- Weakness: CWE-125
Description
libheif is a HEIF and AVIF file format decoder and encoder. Prior to version 1.22.1, the uncompressed HEIF decoder validates explicit icef compressed-unit offsets using unit_offset + unit_size. Because the addition can wrap, a crafted HEIF file can pass the range check and then construct a vector from iterators outside the compressed item buffer, producing an out-of-bounds heap read and crash. Version 1.22.1 patches the issue.
Affected products
- strukturag libheif: before 1.22.1 — fixed in 1.22.1
How to fix
Upgrade to a fixed version: strukturag libheif 1.22.1. Check the vendor advisory for mitigations.
References
- https://github.com/strukturag/libheif/security/advisories/GHSA-r7qj-cg5r-r6vf
- https://github.com/strukturag/libheif/security/advisories/GHSA-r7qj-cg5r-r6vf
Get alerted when CVE-2026-49271 or the next vulnerability affects your stack