Skip to content
Memory corruption Advisory Advanced CVE-2025-53766

GDI+ Remote Code Execution Vulnerability (CVE-2025-53766)

A heap-based buffer overflow exists in Windows GDI+ when it parses a specially crafted metafile. An attacker could use this to run code or disclose information, either by getting a victim to open a malicious document or by uploading one to a web service that parses it.

Gábor Selján Follow

Originally disclosed on Microsoft

Critical 9.8 View original

Description

Heap-based buffer overflow in Windows GDI+ allows an unauthorized attacker to execute code over a network.

FAQ

According to the CVSS metric, the privilege required is none (PR:N) and user interaction is none (UI:N). What does that mean for this vulnerability? An attacker doesn't require any privileges on the systems hosting the web services. Successful exploitation of this vulnerability could cause Remote Code Execution or Information Disclosure on web services that are parsing documents that contain a specially crafted metafile, without the involvement of a victim user.

FAQ

According to the CVSS metric, the attack vector is network (AV:N). How could an attacker exploit the vulnerability? An attacker could trigger this vulnerability by convincing a victim to download and open a document that contains a specially crafted metafile. In the worst-case scenario, an attacker could trigger this vulnerability on web services by uploading documents containing a specially crafted metafile (AV:N) without user interaction. When multiple attack vectors can be used, we assign a score based on the scenario with the higher risk.

FAQ

Is the Preview Pane an attack vector for this vulnerability? No, the Preview Pane is not an attack vector.

Windows GDI+

Windows GDI+

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Gábor Selján with Check Point Research. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a heap-based buffer overflow in the GDI+ metafile parsing code, where the size of data written is not properly checked against the allocated buffer.

Impact

Successful exploitation could cause Remote Code Execution or Information Disclosure on web services that parse crafted metafiles, and on a victim's machine if they open a malicious document; the Preview Pane is not an attack vector.

What the attacker needed

Crafted metafile document; victim opens the document, or service parses it

The fix

Microsoft requires customer action, implying a security update should be applied.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

GDI+ is a Windows component that draws images and handles picture files. A buffer overflow means the program writes more data into a memory area than it can hold, which can let an attacker take control of the program. Here, a booby-trapped image file (a metafile) can trigger this when Windows processes it, potentially letting the attacker run their own code.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Gábor Selján

View all

1 more disclosed report, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.