CVE-2021-31166: Microsoft HTTP Protocol Stack Remote Code Execution Vulnerability
CVE-2021-31166 is a critical-severity flaw (CVSS 9.8) affecting windows 10 2004, windows 10 20h2, windows server 2004, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
HTTP Protocol Stack Remote Code Execution Vulnerability
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 99.9% (top 1%) |
| CISA exploited list | Yes, fix due 2022-04-27 |
| Weakness | CWE-416 |
| Published | 2021-05-11 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: 0vercl0k/CVE-2021-31166 (823 stars)
- GitHub PoC: ZZ-SOCMAP/CVE-2021-31166 (19 stars)
- GitHub PoC: corelight/CVE-2021-31166 (12 stars)
- GitHub PoC: ConMiko/CVE-2021-31166-exploit
- Metasploit: Windows IIS HTTP Protocol Stack DOS
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-31166?
windows 10 2004: upgrade to 10.0.19041.982; windows 10 20h2: upgrade to 10.0.19042.982; windows server 2004: upgrade to 10.0.19041.982. Exact commands for each OS are on this page.
Is CVE-2021-31166 being exploited?
Yes. CVE-2021-31166 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2021-31166 affect?
CVE-2021-31166 affects windows 10 2004, windows 10 20h2, windows server 2004. Severity is critical (CVSS 9.8). HTTP Protocol Stack Remote Code Execution Vulnerability
How urgent is CVE-2021-31166?
Priority 100/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action; On your watchlist
Software pages
Windows vulnerabilities · Windows Server vulnerabilities
Related CVEs
- CVE-2021-43226 HIGH 7.8 EXPLOITED UPGRADE UPGRADE Microsoft Windows Privilege Escalation Vulnerability
- CVE-2021-41379 MEDIUM 5.5 EXPLOITED UPGRADE UPGRADE Microsoft Windows Installer Privilege Escalation Vulnerability
- CVE-2021-1732 HIGH 7.8 EXPLOITED MITIGATE MITIGATE Microsoft Win32k Privilege Escalation Vulnerability
- CVE-2021-1675 HIGH 7.8 EXPLOITED UPGRADE UPGRADE Microsoft Windows Print Spooler Remote Code Execution Vulnerability
- CVE-2021-40444 HIGH 8.8 EXPLOITED UPGRADE UPGRADE Microsoft MSHTML Remote Code Execution Vulnerability