Heap Buffer Overflow Vulnerability in libheif HEIF and AVIF Decoder
CVE-2026-41071

5.1MEDIUM

Key Information:

Vendor

Strukturag

Status
Vendor
CVE Published:
22 May 2026

What is CVE-2026-41071?

The libheif library, responsible for decoding HEIF and AVIF file formats, is susceptible to a heap buffer overflow due to improper validation of sample counts. When a specially crafted HEIF sequence file is processed, the saiz box may indicate more samples than exist in the corresponding chunk table, leading to an out-of-bounds read. This vulnerability arises during the file parsing process and can be exploited by applications utilizing libheif to open untrusted HEIF files. The issue has been addressed in version 1.22.0, which is recommended for all users.

Affected Version(s)

libheif < 1.22.0

References

CVSS V4

Score:
5.1
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.