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

High 7.5 Published Updated

An unauthorized attacker can execute code over the network via a use-after-free flaw in the Windows Remote Desktop Gateway Service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-29831?

CVE-2025-29831 is a high-severity use after free vulnerability in Microsoft Windows Server 2008, published on 13 May 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Use after free in Remote Desktop Gateway Service allows an unauthorized attacker to execute code over a network.

Weakness: CWE-416

Which versions are affected by CVE-2025-29831?

It affects 7 products.

Products include Microsoft Windows Server 2008, Microsoft Windows Server 2012, Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022, Microsoft Windows Server 2022 23h2 and 1 more.

How do I fix CVE-2025-29831?

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

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2025-29831 being exploited?

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

All Microsoft Windows Server 2008 vulnerabilities

Sources

Also known as GHSA-799h-p6qr-g4rf.

Is CVE-2025-29831 in your software?

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

Check your SBOMs for free