CVE-2021-31166HTTP Protocol Stack Remote Code Execution Vulnerability
- 9.8CriticalCVSS base score
- 99.9%Exploitation in 30 daysEPSS · top 0.1% of all CVEs
- YesKnown exploitedin CISA's KEV since 6 Apr 2022
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
Description
HTTP Protocol Stack Remote Code Execution Vulnerability
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as Microsoft HTTP Protocol Stack Remote Code Execution Vulnerability.
- Added
- 6 Apr 2022
- Fix due (US federal)
- 27 Apr 2022
- Used by ransomware
- Not known
Apply updates per vendor instructions.
ENISA's EU Vulnerability Database lists it as exploited, from CISA's KEV, since 6 Apr 2022.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module for it. CISA's SSVC rates its exploitation: it is being exploited.
Show the exploits1
Metasploit modules1 module
- Windows IIS HTTP Protocol Stack DOS (Metasploit module) (opens in a new tab)
auxiliary/dos/windows/http/http_sys_accept_encoding_dos_cve_2021_31166Rank normaldisclosed 11 May 2021
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By microsoft
- 27 days later
· 27 days later
Published
- 11 months later
· 11 months later
Added to CISA KEV
Known exploited in the wild
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| microsoftCNA (assigner) | 3.1 | Critical9.8 | 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 |
| NVDNVD · Analyzed | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 99.9% · top 0.1% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
Microsoft · Windows 10 Version 2004
- affected 10.0.0 – < 10.0.19041.982
Microsoft · Windows Server version 2004
- affected 10.0.0 – < 10.0.19041.982
Microsoft · Windows 10 Version 20H2
- affected 10.0.0 – < 10.0.19042.982
Microsoft · Windows Server version 20H2
- affected 10.0.0 – < 10.0.19042.982
References
References3
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31166 (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/162722/Microsoft-HTTP-Protocol-Stack-Remote-Code-Execution.html (opens in a new tab)x_refsource_MISCx_transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-31166 (opens in a new tab)government-resource
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- CISA KEV catalog (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-18079 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-31166)Record last updated .