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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-125"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49271.json"
}{
"cpe": "cpe:2.3:a:struktur:libheif:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "1.22.1"
}
],
"source": [
"AFFECTED_FIELD",
"CPE_RANGE"
]
}
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-49271.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"162182499509287264280112285712375187997",
"254682818133030981226820025915851906346",
"318584011638709378769935906026630011002",
"267657779586728966951764838159835510248"
],
"threshold": 0.9
},
"id": "CVE-2026-49271-71b89595",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/strukturag/libheif/commit/2b6d5a62fb6151e09d5f36757a5aa5e12f9c2045",
"target": {
"file": "heifio/decoder_webp.cc"
}
}
]
"2026-09-10T08:21:15Z"