Actively exploited vulnerability / CVE-2021-31166
Windows 10 and Windows Server flaw lets attackers take control remotely
A flaw in the Windows component that handles web traffic (http.sys) lets an attacker run their own code on a computer or server without needing a password. This could give them access to company data, let them install malicious software or let them shut down services your business relies on. It is on the lists of vulnerabilities used in real attacks kept by CISA, the US cybersecurity agency, and by ENISA, the EU cybersecurity agency.
- Identifier
- CVE-2021-31166 · EUVD-2021-18079
- Severity
- Critical (9.8/10)
- On the CISA list (US)
- yes, since 6 April 2022
- Deadline given to US federal agencies
- 27 April 2022
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 99.9% (FIRST's estimate for the next 30 days)
Does it concern you?
This component is part of Windows and is used mainly by servers and applications that provide web pages or web services. It affects Windows 10 versions 2004 and 20H2 and Windows Server versions 2004 and 20H2, which are common in many offices.
Open Settings, then System and About, to see the Windows version and build number. Version 2004 with a build older than 10.0.19041.982 and version 20H2 with a build older than 10.0.19042.982 are affected; if unsure, ask whoever manages your IT.
Affected products and versions
- Microsoft HTTP Protocol Stack
- windows 10 2004: before 10.0.19041.982
- windows 10 20h2: before 10.0.19042.982
- windows server 2004: before 10.0.19041.982
- windows server 20h2: before 10.0.19042.982
What to do
Install Microsoft's updates through Windows Update to reach at least build 10.0.19041.982 for version 2004 or 10.0.19042.982 for 20H2. Start with servers and machines reachable from the internet.
Versions that contain the fix: 10.0.19041.982, 10.0.19042.982.
The official description
The text below is the description from the public database.
HTTP Protocol Stack Remote Code Execution Vulnerability
Sources
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.