Skip to content
Memory corruption Advisory Advanced CVE-2026-50380

Windows GDI+ Remote Code Execution Vulnerability (CVE-2026-50380)

A heap-based buffer overflow exists in Windows GDI+ when processing a specially crafted EMF+ file. An attacker could convince a user to open such a file, potentially leading to code execution over the network.

Seung Chan Kim Follow

Originally disclosed on Microsoft

Critical 9.6 View original

Description

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

FAQ

How could an attacker exploit this vulnerability? An attacker could exploit this vulnerability by convincing a user to open or process a specially crafted EMF+ file that contains a malicious image record. When the file is rendered, the system may incorrectly handle the image data, causing it to write beyond the bounds of allocated memory and corrupt adjacent memory structures.

Windows GDI+

Windows GDI+

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Seung Chan Kim. 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 the GDI+ image parser does not properly validate the size of image data in EMF+ records before copying it into a heap buffer.

Impact

An attacker could execute arbitrary code over the network if a user opens or processes a malicious EMF+ file.

What the attacker needed

Victim opens a malicious EMF+ file

The fix

Microsoft should correct the bounds checking in GDI+ when handling EMF+ image records; the text does not state that a fix is available.

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 graphics. A buffer overflow happens when a program writes more data into a memory area than it can hold, which can let an attacker take control of the program. Here, opening a malicious image file could trigger this overflow and let an 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 Seung Chan Kim

View all

79 more disclosed reports, 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.