CVE-2025-62821 Memory corruption in n/a

Critical 9.1 Published Updated

An out-of-bounds read in Microsoft HEIF Image Extensions allows attackers to cause denial of service or disclose information via crafted images.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-62821?

CVE-2025-62821 is a critical memory corruption vulnerability in n/a, published on 19 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-125

Which versions are affected by CVE-2025-62821?

It affects 1 product.

Products include Microsoft Heif Image Extension.

How do I fix CVE-2025-62821?

No fix has been published for CVE-2025-62821 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-62821 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-62821 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-4qq3-gjhp-4grf.

Is CVE-2025-62821 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free