CVE-2025-21309 Windows Remote Desktop Services Remote Code Execution Vulnerability

High 8.1 Published Updated

Attackers can execute arbitrary code on Windows Server systems via Remote Desktop Services, requiring immediate patching.

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-21309?

CVE-2025-21309 is a high-severity code injection vulnerability in Microsoft Windows Server 2012, published on 14 Jan 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Windows Remote Desktop Services Remote Code Execution Vulnerability

Weakness: CWE-591

Which versions are affected by CVE-2025-21309?

It affects 6 products.

Products include Microsoft Windows Server 2012, Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022, Microsoft Windows Server 2022 23h2, Microsoft Windows Server 2025.

How do I fix CVE-2025-21309?

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

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-21309 being exploited?

There is no known exploitation of CVE-2025-21309 in the wild and no public exploit code.

All Microsoft Windows Server 2012 vulnerabilities

Sources

Also known as GHSA-cwpx-vh5m-58gx.

Is CVE-2025-21309 in your software?

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

Check your SBOMs for free