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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-19T17:16:20.157Z
- Modified: 2026-10-25T23:10:00.167Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- strukturag libheif: < 1.22.1
- struktur libheif: before 1.22.1

## References

- <https://github.com/strukturag/libheif/security/advisories/GHSA-r7qj-cg5r-r6vf> (exploit, mitigation, vendor-advisory)

## Sources

- CVE List: [CVE-2026-49271](https://www.cve.org/CVERecord?id=CVE-2026-49271), CVE Terms of Use, modified 2026-06-22
- NVD: [CVE-2026-49271](https://nvd.nist.gov/vuln/detail/CVE-2026-49271), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-49271 · Whole record: https://cve.day/CVE-2026-49271.json · Rebuilt by cve.day 2026-11-25T22:59:25.273Z
