# CVE-2026-49271: libheif: Wrapped icef compressed-unit range check causes out-of-bounds read in uncompressed HEIF decoder

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-19 · Modified: 2026-06-22
- Aliases: UBUNTU-CVE-2026-49271, DEBIAN-CVE-2026-49271
- Record: https://cvemate.com/vulnerability/CVE-2026-49271 · JSON: https://cvemate.com/vulnerability/CVE-2026-49271/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 0.199%, percentile 10.24%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libheif (Debian): All versions (No fix recorded) \| \< 1.19.8-1+deb13u1 \| \< 1.23.1-1
- ubuntu libheif (Ubuntu): \< 1.21.2-3ubuntu0.2
- struktur libheif: \< 1.22.1
- strukturag libheif: \< 1.22.1

## References

- <https://github.com/strukturag/libheif/security/advisories/GHSA-r7qj-cg5r-r6vf>
- <https://ubuntu.com/security/CVE-2026-49271>
- <https://www.cve.org/CVERecord?id=CVE-2026-49271>
- <https://ubuntu.com/security/notices/USN-8479-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-49271>

---

Data as of 2026-12-05T10:01:41.696Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
