CVE-2026-49271
MEDIUM
6.5
CVSS 3.1
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.
Metadata
Severity & Metrics
6.5
MEDIUM CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Affected products (1)
| Vendor | Product | Platform | Versions |
|---|---|---|---|
| strukturag | libheif | — | < 1.22.1 |
Weakness (CWE)
| CWE | Source | Description |
|---|---|---|
| CWE-125 | cna | CWE-125: Out-of-bounds Read |
CVSS scores (1)
| Score | Severity | Version | Source | Vector |
|---|---|---|---|---|
| 6.5 | MEDIUM | 3.1 | cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
References (1)
- https://github.com/strukturag/libheif/security/advisories/GHSA-r7qj-cg5r-r6vf https://github.com/strukturag/libheif/security/advisories/GHSA-r7qj-cg5r-r6vf