CVE-2026-49271CWE-125

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

Medium · published June 19, 2026

CVSS v3.1
6.5
EPSS
0%
Percentile
28.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00355 · 28.0th percentile
Weakness
CWE-125 · Out-of-bounds Read
Published
2026-06-19T17:16Z
EPSS history
Timeline
  • 19 JUN 17:16Z
    libheif: Wrapped icef compressed-unit range check causes out-of-bounds read in uncompressed HEIF decoder
    cvelistv5