CVE-2026-47714
Received Received - Intake

Integer Overflow Leading to Out-of-Bounds Access in libheif

Vulnerability report for CVE-2026-47714, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-21

Last updated on: 2026-07-21

Assigner: GitHub, Inc.

Description

libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, the inline mask parsing code in `libheif/region.cc` contains an integer overflow. Both `width` and `height` are `unsigned int` (32-bit) values parsed from the HEIF file. Their product can exceed `UINT32_MAX`, wrapping to a small value before the division by 8. This causes an undersized buffer allocation, leading to out-of-bounds memory access when the mask data is later interpreted as a `width x height` bitmap. Version 1.22.0 patches the issue.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-21
Last Modified
2026-07-21
Generated
2026-07-22
AI Q&A
2026-07-22
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
structural_heif libheif to 1.22.0 (exc)
structural_heif libheif 1.22.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-190 The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an integer overflow in the inline mask parsing code of libheif versions 1.21.2 and prior. It occurs when the product of width and height values parsed from a HEIF file exceeds the maximum 32-bit unsigned integer value, causing the value to wrap around to a smaller number. This leads to an undersized buffer allocation, which later results in out-of-bounds memory access when the mask data is interpreted as a bitmap.

Detection Guidance

Detecting this vulnerability requires checking the version of libheif installed on your system. If you are running libheif version 1.21.2 or earlier, your system is vulnerable. Use the command 'heif-info --version' or 'dpkg -l | grep libheif' on Debian-based systems to check the installed version.

Impact Analysis

This vulnerability could allow an attacker to execute arbitrary code or cause a denial of service by triggering out-of-bounds memory access when processing a maliciously crafted HEIF file. It may lead to crashes, data corruption, or potential remote code execution depending on the application's context.

Mitigation Strategies

Immediately update libheif to version 1.22.0 or later to patch the integer overflow vulnerability. On Debian-based systems, use 'sudo apt-get update && sudo apt-get install --only-upgrade libheif1'. For other distributions, check your package manager for the latest version.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-47714. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart