CVE-2025-62821
Received Received - Intake
Out-of-Bounds Read in Microsoft HEIF Image Extensions

Publication date: 2026-06-19

Last updated on: 2026-06-19

Assigner: MITRE

Description
Microsoft HEIF Image Extensions 1.2.22.0 has an out-of-bounds read because CHEIFItemInfoEntry_GetDataSize can return success while leaving the reported data size as 0. This causes a caller to make a 1-byte allocation. Later, CopyPixels computes copy_size = stride * abs(roi_height) but does not check the source buffer length before a memmove call.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-19
Last Modified
2026-06-19
Generated
2026-06-19
AI Q&A
2026-06-19
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
microsoft heif_image_extensions 1.2.22.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2025-62821 is a vulnerability in Microsoft HEIF Image Extensions version 1.2.22.0 that causes an out-of-bounds read. The issue arises because the function CHEIFItemInfoEntry_GetDataSize can return success while reporting a data size of 0, leading to the allocation of a 1-byte buffer. Later, the CopyPixels function calculates a copy size based on image stride and region of interest height but does not verify if the source buffer is large enough before performing a memory move operation (memmove). This results in reading beyond the allocated buffer, causing an access violation and denial of service (DoS) when processing crafted malicious HEIF images.

The vulnerability is triggered when opening or previewing a malicious HEIF file on systems with the Microsoft HEIF Image Extensions installed. The root cause is the lack of validation of the source buffer length against the computed copy size, which can be further worsened if the image width is mis-parsed, inflating the copy size.

Impact Analysis

This vulnerability can cause a denial of service (DoS) on affected systems. When a user opens or previews a specially crafted malicious HEIF image, the out-of-bounds read leads to an access violation crash in any Windows Imaging Component (WIC) consumer that relies on the Microsoft HEIF Image Extensions. This can disrupt normal operations, potentially causing applications or the system to become unstable or crash.

Detection Guidance

This vulnerability can be detected by monitoring for crashes or access violations in applications that use the Microsoft HEIF Image Extensions (msheif_store.dll) when processing HEIF images. Specifically, opening or previewing malicious HEIF files that trigger out-of-bounds reads will cause denial of service (DoS) crashes.

To detect exploitation attempts, you can look for crash logs or application errors related to msheif_store.dll or Windows Imaging Component (WIC) consumers.

There is a proof-of-concept (PoC) file available that reproduces the issue, which can be used in a controlled environment to test if your system is vulnerable.

No specific network commands are provided, but on the system level, you can use Windows Event Viewer to check for application crashes related to msheif_store.dll.

Mitigation Strategies

Immediate mitigation steps include avoiding opening or previewing HEIF image files from untrusted or unknown sources, as the vulnerability is triggered by processing crafted HEIF images.

If possible, uninstall or disable the Microsoft HEIF Image Extensions (version 1.2.22.0) until a patch or update is available.

Monitor for updates from Microsoft addressing this vulnerability and apply patches promptly once released.

Compliance Impact

The provided information does not specify any direct impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-62821. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart