CVE-2021-31166: Microsoft HTTP Protocol Stack Remote Code Execution
Microsoft HTTP Protocol Stack · listed in the CISA catalog of actively exploited vulnerabilities since 2022-04-06.
- CVSS v3.1 (CVE record)
- 9.8
- critical
- EPSS (exploit probability, 30 days)
- 99.8%
- among the highest 0.1% of all CVEs
- Added to CISA KEV
- 2022-04-06
- US federal due date 2022-04-27
- Automatable (CISA SSVC)
- yes
- technical impact: total
CVE-2021-31166 explained
CVE-2021-31166 is a use-after-free vulnerability in http.sys, the Microsoft HTTP Protocol Stack in Windows, that allows remote code execution. It affects several Windows 10 and Windows Server releases. CISA lists it as known to be exploited, and it can be triggered over the network without credentials or user interaction.
Impact
A remote, unauthenticated attacker can send network traffic to an affected system and execute code, with no user interaction. Confidentiality, integrity and availability impact are all high. CISA rates it automatable, meaning attackers can exploit it at scale. CISA also rates the technical impact as total, meaning full control of the affected component. Attackers are known to exploit it. Whether ransomware groups use it is unknown.
Who is affected
The CVE record lists the following affected releases and fixes:
- Microsoft Windows 10 Version 2004 (32-bit, ARM64, x64): versions below 10.0.19041.982, fixed in 10.0.19041.982.
- Microsoft Windows Server version 2004 (x64): versions below 10.0.19041.982, fixed in 10.0.19041.982.
- Microsoft Windows 10 Version 20H2 (32-bit, ARM64): versions below 10.0.19042.982, fixed in 10.0.19042.982.
- Microsoft Windows Server version 20H2 (x64): versions below 10.0.19042.982, fixed in 10.0.19042.982.
Written with AI from the data on this page and checked against it automatically.
Official description
Microsoft HTTP Protocol Stack contains a vulnerability in http.sys that allows for remote code execution.
CISA required action: Apply updates per vendor instructions.
CISA notes
Affected and fixed versions
From the CVE record published by the vendor or CVE numbering authority.
- Microsoft Windows 10 Version 200432-bit, ARM64, x64AffectedFixed in
- < 10.0.19041.982
- 10.0.19041.982
- Microsoft Windows Server version 2004x64AffectedFixed in
- < 10.0.19041.982
- 10.0.19041.982
- Microsoft Windows 10 Version 20H232-bit, ARM64AffectedFixed in
- < 10.0.19042.982
- 10.0.19042.982
- Microsoft Windows Server version 20H2x64AffectedFixed in
- < 10.0.19042.982
- 10.0.19042.982
| Product | Affected | Fixed in |
|---|---|---|
| Microsoft Windows 10 Version 200432-bit, ARM64, x64 |
|
|
| Microsoft Windows Server version 2004x64 |
|
|
| Microsoft Windows 10 Version 20H232-bit, ARM64 |
|
|
| Microsoft Windows Server version 20H2x64 |
|
|
How to fix it
- Update to the fixed version for your product:
- Microsoft Windows 10 Version 2004: 10.0.19041.982
- Microsoft Windows Server version 2004: 10.0.19041.982
- Microsoft Windows 10 Version 20H2: 10.0.19042.982
- Microsoft Windows Server version 20H2: 10.0.19042.982
- Vendor advisory: portal.msrc.microsoft.com/en-US/security-guidance/advisor…
- CISA's deadline for US federal agencies: 2022-04-27 (passed) – a useful benchmark for everyone else, too.
What to do
- Apply Microsoft's security update so systems reach build
10.0.19041.982(version 2004) or10.0.19042.982(20H2) or later. - Follow the vendor advisory, in line with CISA's required action to apply updates per vendor instructions.
- Prioritize internet-facing systems that accept HTTP traffic through http.sys.
- Restrict network exposure of unpatched systems until updates are installed.
- Check exposed systems for signs of compromise, since the vulnerability is known to be exploited.
Written with AI from the data on this page and checked against it automatically.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- Yes – attackers can automate it at scale
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-416 Use After Free
Questions about CVE-2021-31166
- Is CVE-2021-31166 being exploited?
- Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2022-04-06, with a US federal due date of 2022-04-27. Whether it has been used in ransomware campaigns is unknown.
- Does an attacker need credentials or user interaction?
- No. The vulnerability can be exploited over the network with low complexity, no privileges and no user interaction. CISA rates it as automatable.
- Which builds fix the issue?
- Build
10.0.19041.982fixes Windows 10 Version 2004 and Windows Server version 2004. Build10.0.19042.982fixes Windows 10 Version 20H2 and Windows Server version 20H2.
Written with AI from the data on this page and checked against it automatically.
References
Trackers and catalogs
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.