CVE-2021-28310: Win32k Elevation of Privilege in Desktop Window Manager DirectComposition
- Vendor
- Microsoft Corporation
CVE-2021-28310 is a Windows local elevation-of-privilege vulnerability in the Desktop Window Manager component, specifically an out-of-bounds write in dwmcore.dll reachable through the DirectComposition API. The flaw stems from insufficient bounds checking when processing DirectComposition property updates for the D2DVector2 expression type. In the vulnerable path, CPropertySet::UpdateProperty<D2DVector2> in dwmcore.dll does not properly verify that the supplied property identifier is within the number of properties assigned to the resource. Although kernel-mode validation in win32kbase.sys normally constrains invalid property updates, attackers can abuse inconsistencies between kernel-mode and user-mode property handling to create a mismatch in property counts for the same resource. That inconsistency allows malicious SetResourceBufferProperty operations to reach Desktop Window Manager and perform a controlled out-of-bounds write at a controlled offset. Reported exploitation involved heap grooming and placement of fake properties to bypass additional checks and turn the memory corruption into code execution. The vulnerability was observed exploited in the wild and is assessed as suitable for use in exploit chains to escape browser sandboxes or elevate privileges to SYSTEM.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation enables local privilege escalation on a vulnerable Windows system. An attacker who already has code execution in a low-privilege context can leverage the flaw to corrupt memory in Desktop Window Manager and execute code with higher privileges, including SYSTEM-level access. In practical attack chains, this can be used to escape browser sandboxes, defeat application isolation boundaries, inject code into privileged processes, establish persistence, and gain broader control of the host for follow-on actions such as credential theft, lateral movement, or deployment of additional malware.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, reduce exposure by limiting opportunities for untrusted code execution on endpoints, especially within browsers and document-handling applications that could provide the initial foothold for a local privilege-escalation chain. Harden systems with application control, exploit prevention, least-privilege user configurations, and aggressive monitoring for suspicious child-process creation, memory-corruption exploitation behavior, and anomalous interactions with Desktop Window Manager or DirectComposition-related components. These measures only reduce risk and are not a substitute for installing the vendor patch.
Remediation
Patch, then assume compromise.
Apply Microsoft's April 2021 security updates that address CVE-2021-28310. Because the vulnerability was exploited in the wild, affected Windows systems should be updated on an expedited basis. Where enterprise patch management is used, verify that the relevant cumulative update for each supported Windows version has been successfully deployed and that systems have been rebooted if required so the patched Desktop Window Manager and related components are loaded.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-28310 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
- Is there a public exploit for CVE-2021-28310?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2021-28310.
- Is there a patch for CVE-2021-28310?
- Apply Microsoft's April 2021 security updates that address CVE-2021-28310. Because the vulnerability was exploited in the wild, affected Windows systems should be updated on an expedited basis.
- What products are affected by CVE-2021-28310?
- Microsoft Corporation Windows 10 1803, Microsoft Corporation Windows 10 1809, Microsoft Corporation Windows 10 1909, Microsoft Corporation Windows 10 2004, Microsoft Corporation Windows 10 20h2, and 4 more.
- How severe is CVE-2021-28310?
- CVE-2021-28310 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 8.4% (95th percentile) as of Oct 16, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.