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

Microsoft DWM Core Library Elevation of Privilege Vulnerability (CVE-2025-58722)

A heap-based buffer overflow exists in the Windows Desktop Window Manager (DWM) core library. An attacker who already has authorised access to a machine could exploit it locally to gain SYSTEM privileges.

Varun Goel Follow

Originally disclosed on Microsoft

High 7.8 View original

Description

Heap-based buffer overflow in Windows DWM allows an authorized attacker to elevate privileges locally.

FAQ

What privileges could be gained by an attacker who successfully exploited this vulnerability? An attacker who successfully exploited this vulnerability could gain SYSTEM privileges.

Windows DWM

Windows DWM

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Varun Goel. 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 missing or incorrect bounds check when handling data in the DWM core library, leading to a heap buffer overflow.

Impact

An attacker with authorised local access could elevate their privileges to SYSTEM, but the text gives no further detail on how reliably this can be done.

What the attacker needed

Local access to the machine; ability to run code as an authorised user

The fix

Microsoft has released a security update; the text says customer action is required, so installing the update is the fix.

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.

Windows DWM is the part of the operating system that draws windows and manages the desktop. A buffer overflow means a program writes more data into a memory area than it was designed to hold, which can corrupt nearby memory. Here, someone who can already run code on the computer could use this flaw to go from a normal user to the highest level of control, called SYSTEM.

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 Varun Goel

View all

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