CVE-2021-31166
CVE-2021-31166 — HTTP Protocol Stack Remote Code Execution Vulnerability
HTTP Protocol Stack Remote Code Execution Vulnerability
Published Updated Sources: NVD, Microsoft (CNA), CISA, FIRST EPSS, GitHub, GitHub Security Advisory, Microsoft MSRC, SOCRadar CTI
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Confirmed
CISA KEV, listed Apr 6, 2022
EPSS
100%
top of FIRST's scoreset
CVSS base
7.5
high · 3 sources
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
Active
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Remediation
The vendor's own words where we have them.
Apply Microsoft security update KB5003173 (2021-May release) — https://catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5003173.
CISA required action
Apply updates per vendor instructions.
Federal deadline Apr 27, 2022 — passed 1,682 days ago
First 24 hours
Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.
- Identify exposed assets running affected vendor/product/version combinations.
- Treat as emergency remediation because CISA KEV status is present.
- Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.
Affected scope
Vendor, product and version as the advisories word them.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Microsoft | Windows 10 Version 2004 | 10.0.0 to < 10.0.19041.982 | Vulnerable |
| Microsoft | Windows Server version 2004 | 10.0.0 to < 10.0.19041.982 | Vulnerable |
| Microsoft | Windows 10 Version 20H2 | 10.0.0 to < 10.0.19042.982 | Vulnerable |
| Microsoft | Windows Server version 20H2 | 10.0.0 to < 10.0.19042.982 | Vulnerable |
| Microsoft | Windows 10 Version 2004 for 32-bit Systems | n/a | Vulnerable |
| Microsoft | Windows 10 Version 2004 for ARM64-based Systems | n/a | Vulnerable |
| Microsoft | Windows 10 Version 2004 for x64-based Systems | n/a | Vulnerable |
| Microsoft | Windows Server, version 2004 (Server Core installation) | n/a | Vulnerable |
| Microsoft | Windows 10 Version 20H2 for 32-bit Systems | n/a | Vulnerable |
| Microsoft | Windows 10 Version 20H2 for ARM64-based Systems | n/a | Vulnerable |
| Microsoft | Windows Server, version 20H2 (Server Core Installation) | n/a | Vulnerable |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Availability
P
Confidentiality
P
Integrity
P
Attack Complexity
Low
Attack Vector
Network
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 9.8 | CVSS 3.1 | critical | 3.9 | 5.9 | Microsoft (CNA), nist.gov (CNA), GHSA |
| 7.5 | CVSS 2.0 | high | 10 | 6.4 | NVD |
| 9.8 | CVSS 3.1 | critical | n/a | n/a | Microsoft (CNA), Microsoft |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What this weakness leads to
MITRE's own consequences and mitigations for the weakness class — the authority's wording, not guidance derived from the CVSS vector.
CWE-416 · Use After Free
- Modify Memory
- DoS: Crash, Exit, or Restart
- Execute Unauthorized Code or Commands
Mitigation: Choose a language that provides automatic memory management.
Weakness & attack patterns
- CWE-416Use After Free
Inferred from the weakness class — not observed against this CVE.
CISA KEV details
CISA lists a CVE here once it has evidence of exploitation against real targets.
Listed
Apr 6, 2022
Federal deadline
Apr 27, 2022
passed 1,682 days ago
Ransomware use
Unknown
CISA records ransomware use only for campaigns it has confirmed, so “Unknown” means unrecorded, not ruled out. The deadline binds US federal agencies; for everyone else it is a date to argue against.
Public exploit
Capability, not use: code existing is a different claim from anyone running it.
PoC repos
64
1 of the 5 sampled are weaponized
Exploit entries
32
Exploit-DB and CTI exploit indexes
Detection rules
Sigma and YARA rules a source published for this CVE — the only detection content any connected source supplies.

Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Prioritize edge telemetry for network-reachable Windows 10 Version 2004, Windows Server version 2004, Windows 10 Version 20H2, Windows Server version 20H2, Windows 10 Version 2004 for 32-bit Systems, Windows 10 Version 2004 for ARM64-based Systems, Windows 10 Version 2004 for x64-based Systems, Windows Server, version 2004 (Server Core installation), Windows 10 Version 20H2 for 32-bit Systems, Windows 10 Version 20H2 for ARM64-based Systems, Windows Server, version 20H2 (Server Core Installation).
- Monitor for scanner or exploit-pattern traffic after 96 public PoC repositories were reported.
Groups associated with this CVE
Groups reported in connection with this vulnerability. A reported association, not a confirmed observation of that group using it — and not scoped to any sector or campaign.
Timeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Cve is exploited testerxma/cve-2021-31166-poc
Oct 25, 2026 · SOCRadar CTI
Added · CVSS 3.1 7.5 (AV:N)
Jun 17, 2026 · NVD
- 2025
Cve is exploited qazbnme/CVE-2021
Oct 29, 2025 · SOCRadar CTI
Bulletin released on NIST.
Oct 16, 2025 · SOCRadar CTI
Bulletin released on NIST.
Oct 16, 2025 · SOCRadar CTI
Bulletin released on Mitre.
Feb 7, 2025 · SOCRadar CTI
Bulletin released on NIST.
Feb 7, 2025 · SOCRadar CTI
- 2024
Bulletin released on NIST.
Jul 10, 2024 · SOCRadar CTI
CVE is exploited. "lions2012/Penetration_Testing_POC"
Feb 8, 2024 · SOCRadar CTI
- 2023
CVE is exploited. "Ostorlab/KEV"
Dec 26, 2023 · SOCRadar CTI
CVE is exploited. "zecopro/CVE-2021-31166"
Dec 5, 2023 · SOCRadar CTI
CVE is exploited. "zha0gongz1/CVE-2021-31166"
Dec 5, 2023 · SOCRadar CTI
- 2022
Added · GHSA-3mj9-c62w-jw5w published (critical)
May 24, 2022 · GitHub Security Advisory
Added to CISA KEV catalog
Apr 6, 2022 · CISA
- 2021
Initial · CVE published
May 11, 2021 · NVD
Source activity
Readings a source repeats on a schedule, counted rather than listed.
- 10×ModifiedJul 9, 2024 – Oct 30, 2025 · SOCRadar CTI
- 4×SVRS was changedOct 29, 2025 – Oct 25, 2026 · SOCRadar CTI
- 4×Github ReposDec 9, 2023 – Oct 24, 2026 · SOCRadar CTI
References
7 on the record
- packetstormsecurity.com/files/162722/Microsoft-HTTP-Protocol-Stack-Remote-Code-Execution.html
Third Party Advisory, VDB Entry, NIST, GITHUB
- portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31166
Patch, Vendor Advisory, NIST, MITRE_REFERENCES
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-31166
US Government Resource
- nvd.nist.gov/vuln/detail/CVE-2021-31166
NVD, Vendor Advisory
- github.com/advisories/GHSA-3mj9-c62w-jw5w
Exploit, Third Party Advisory
- catalog.update.microsoft.com/v7/site/Search.aspx?q=KB5003173
Vendor Advisory
- support.microsoft.com/help/5003173
Vendor Advisory
Coverage
1 story from the feeds we poll
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2020-1472 Netlogon Elevation of Privilege VulnerabilityCVSS 9.3 · CISA KEV
- CVE-2021-34527 Windows Print Spooler Remote Code Execution VulnerabilityCVSS 9.0 · CISA KEV
- CVE-2021-43226 Windows Common Log File System Driver Elevation of Privilege VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2022-22715 Named Pipe File System Elevation of Privilege VulnerabilityCVSS 7.2
- CVE-2022-29900 Mis-trained branch predictions for return instructions may allow arbitrary speculative code execution under certain…CVSS 6.5
- CVE-2025-24085 Apple Multiple Products Use-After-Free VulnerabilityCVSS 10.0 · CISA KEV
Elsewhere on this site
- Microsoftevery CVE for this vendor
- Windows 10 Version 2004every page on this product
- Windows Server version 2004every page on this product
- Patch Tuesdayacross patch cycles
- April 2022what else CISA listed
- Memory Corruptionsame class
- CWE-416other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1
What should defenders know first?
CVE-2021-31166 is HTTP Protocol Stack Remote Code Execution Vulnerability, a high vulnerability affecting Windows 10 Version 2004, Windows Server version 2004, Windows 10 Version 20H2, Windows Server version 20H2, Windows 10 Version 2004 for 32-bit Systems, Windows 10 Version 2004 for ARM64-based Systems, Windows 10 Version 2004 for x64-based Systems, Windows Server, version 2004 (Server Core installation), Windows 10 Version 20H2 for 32-bit Systems, Windows 10 Version 20H2 for ARM64-based Systems, Windows Server, version 20H2 (Server Core Installation) from Microsoft. The current evidence lists it in CISA KEV, and the exploit status is: Yes: CISA KEV signal present. Public exploit evidence is: 96 public PoC repositories reported; 1 marked weaponized in current dataset. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 7.5 describes technical severity, while EPSS 100% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.