CVE-2026-49271: libheif: Wrapped icef compressed-unit range check causes out-of-bounds read in uncompressed HEIF decoder
Last updated 29 June 2026
Other sources
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 unitoffset + unitsize. 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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
libheifto a version that resolves this vulnerability.Fixed in 1.22.1
Event History
Frequently Asked Questions
What is the severity of CVE-2026-49271?
CVE-2026-49271 has a medium severity rating of 6.5.
How do I fix CVE-2026-49271?
To mitigate CVE-2026-49271, update libheif to version 1.22.1 or later.
What impact does CVE-2026-49271 have on my system?
CVE-2026-49271 can lead to an out-of-bounds read when processing crafted HEIF files.
Which software is affected by CVE-2026-49271?
CVE-2026-49271 affects versions of the libheif library prior to version 1.22.1.
When was CVE-2026-49271 published?
CVE-2026-49271 was published on June 19, 2026.