Home / Microsoft / Windows 10 Version 2004 / CVE-2021-31166
CVE-2021-31166: is it exploited, and which versions of Microsoft Windows 10 Version 2004 are affected and fixed?
CVE-2021-31166 is an use after free vulnerability in Microsoft Windows 10 Version 2004, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on April 6, 2022, with a federal due date of April 27, 2022. Affected: Windows 10 Version 2004 from 10.0.0 before 10.0.19041.982, Windows Server version 2004 from 10.0.0 before 10.0.19041.982, Windows 10 Version 20H2 from 10.0.0 before 10.0.19042.982 and 1 more (CVE record by microsoft). Fixed in 10.0.19041.982 and 10.0.19042.982 (CVE record by microsoft). Severity: Critical (9.8, CVSS 3.1, from microsoft).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:39 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:58 UTC.
What is CVE-2021-31166?
HTTP Protocol Stack Remote Code Execution Vulnerability
From the CVE record by microsoft, last updated October 21, 2025, 23:25 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Microsoft | Windows 10 Version 2004 32-bit Systems, ARM64-based Systems, x64-based Systems | from 10.0.0 before 10.0.19041.982 | 10.0.19041.982 |
| Microsoft | Windows Server version 2004 x64-based Systems | from 10.0.0 before 10.0.19041.982 | 10.0.19041.982 |
| Microsoft | Windows 10 Version 20H2 32-bit Systems, ARM64-based Systems | from 10.0.0 before 10.0.19042.982 | 10.0.19042.982 |
| Microsoft | Windows Server version 20H2 x64-based Systems | from 10.0.0 before 10.0.19042.982 | 10.0.19042.982 |
As the CVE record by microsoft states it, last updated October 21, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| microsoft | windows 10 2004 | before 10.0.19041.982 | operating system |
| microsoft | windows 10 20h2 | before 10.0.19042.982 | operating system |
| microsoft | windows server 2004 | before 10.0.19041.982 | operating system |
| microsoft | windows server 20h2 | before 10.0.19042.982 | operating system |
NVD analysis (status Analyzed), last modified June 17, 2026, 03:51 UTC.
How severe is CVE-2021-31166?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C | microsoft |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 7.5 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-31166 exploited in the wild?
- CISA KEV
- Listed as Microsoft HTTP Protocol Stack Remote Code Execution Vulnerability, added April 6, 2022; federal agencies must act by April 27, 2022
- Required action
- Apply updates per vendor instructions.
- Ransomware use
- Unknown
- CISA's summary
- Microsoft HTTP Protocol Stack contains a vulnerability in http.sys that allows for remote code execution.
- CISA SSVC
- Exploitation: active; automatable: yes; technical impact: total (CISA ADP, February 7, 2025)
- EPSS
- 99.9% probability of exploitation activity in the next 30 days, percentile 100.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-416 Use After Free
Where are the vendor advisories and references?
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31166 x_refsource_MISC
- http://packetstormsecurity.com/files/162722/Microsoft-HTTP-Protocol-Stack-Remote-Code-Execution.html x_refsource_MISC
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-31166 government-resource
When was it published, and where is the official record?
- Reserved
- April 14, 2021
- Published
- May 11, 2021, 19:11 UTC
- CVE record updated
- October 21, 2025, 23:25 UTC by microsoft
- NVD
- Analyzed, last modified June 17, 2026, 03:51 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:58 UTC; KEV December 3, 2026, 18:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD · CISA KEV
What other CVEs affect Windows 10 Version 2004?
- Dec 15, 2021CVE-2021-43226 Microsoft Windows 10 Version 1809: Elevation of Privilege exploited
- Nov 10, 2021CVE-2021-41379 Microsoft Windows 10 Version 1507: link following (a symlink lets an attacker reach other files) exploited
- Oct 13, 2021CVE-2021-41357 Microsoft Windows 10 Version 21H1: Elevation of Privilege exploited
- Oct 13, 2021CVE-2021-40450 Microsoft Windows 10 Version 1809: Elevation of Privilege exploited
- Oct 13, 2021CVE-2021-40449 Microsoft Windows 10 Version 1809: use after free exploited
- Sep 15, 2021CVE-2021-40444 Microsoft Windows 10 Version 1507: path traversal (reading or writing files outside the intended folder) exploited
- Sep 15, 2021CVE-2021-36955 Microsoft Windows 10 Version 1507: Elevation of Privilege exploited
- Aug 12, 2021CVE-2021-36948 Microsoft Windows 10 Version 1809: Elevation of Privilege exploited
Every CVE in Windows 10 Version 2004
Questions about CVE-2021-31166
Is CVE-2021-31166 exploited in the wild?
Yes. CISA added CVE-2021-31166 to its Known Exploited Vulnerabilities catalog on April 6, 2022 and set federal agencies a due date of April 27, 2022. FIRST's EPSS gives it a 99.9% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Microsoft Windows 10 Version 2004 are affected by CVE-2021-31166?
Windows 10 Version 2004 from 10.0.0 before 10.0.19041.982, Windows Server version 2004 from 10.0.0 before 10.0.19041.982, Windows 10 Version 20H2 from 10.0.0 before 10.0.19042.982 and Windows Server version 20H2 from 10.0.0 before 10.0.19042.982, per the CVE record by microsoft. The tables above give every range the sources list.
Which version fixes CVE-2021-31166?
10.0.19041.982 and 10.0.19042.982, per the CVE record by microsoft. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-31166?
Critical (9.8, CVSS 3.1, from microsoft). The severity table above shows each score with its source.
Where is the official record of CVE-2021-31166?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.