CVE-2026-42987 Windows Deployment Services (WDS) Remote Code Execution

High 8.1 Published Updated

An unauthorized attacker can execute arbitrary code remotely via a use-after-free vulnerability in Windows Deployment Services.

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-2026-42987?

CVE-2026-42987 is a high-severity use after free vulnerability in Microsoft Windows Server 2012, published on 9 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Use after free in Windows Deployment Services allows an unauthorized attacker to execute code over a network.

Weakness: CWE-416

Which versions are affected by CVE-2026-42987?

It affects 5 products.

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

How do I fix CVE-2026-42987?

No fix has been published for CVE-2026-42987 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-2026-42987 being exploited?

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

All Microsoft Windows Server 2012 vulnerabilities

Sources

Also known as GHSA-9wx6-gp73-qg3j.

Is CVE-2026-42987 in your software?

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

Check your SBOMs for free