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.
References
| Link | Resource |
|---|---|
| https://github.com/strukturag/libheif/security/advisories/GHSA-r7qj-cg5r-r6vf | Mitigation Vendor Advisory |
| https://github.com/strukturag/libheif/security/advisories/GHSA-r7qj-cg5r-r6vf | Mitigation Vendor Advisory |
Configurations
History
26 Jun 2026, 12:33
| Type | Values Removed | Values Added |
|---|---|---|
| CPE | cpe:2.3:a:struktur:libheif:*:*:*:*:*:*:*:* | |
| First Time |
Struktur
Struktur libheif |
|
| References | () https://github.com/strukturag/libheif/security/advisories/GHSA-r7qj-cg5r-r6vf - Mitigation, Vendor Advisory |
22 Jun 2026, 18:16
| Type | Values Removed | Values Added |
|---|---|---|
| References | () https://github.com/strukturag/libheif/security/advisories/GHSA-r7qj-cg5r-r6vf - |
19 Jun 2026, 18:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-06-19 18:16
Updated : 2026-06-26 12:33
NVD link : CVE-2026-49271
Mitre link : CVE-2026-49271
CVE.ORG link : CVE-2026-49271
JSON object : View
Products Affected
struktur
- libheif
CWE
CWE-125
Out-of-bounds Read
