CVE-2021-31166 · Published 11 May 2021
Microsoft HTTP Protocol Stack
On CISA's KEV list 330 days after disclosure; 16 public exploits.
Microsoft HTTP Protocol Stack contains a vulnerability in http.sys that allows for remote code execution.
CISA required action (federal due date 27 Apr 2022): Apply updates per vendor instructions.
Signals
- KEV, exploited in the wild
- yes, added 6 Apr 2022, due 27 Apr 2022
- EPSS, 30-day forecast
- 99.9%, 100th percentile (as of 18 Nov 2026)
- CVSS, NVD
- not stated
- Internet exposure
- not stated
KEV is an observation, EPSS a forecast; KEV outranks it. No score published by NVD.
Timeline 11 May 2021 to today
- Disclosed
- Metasploit+309 d
- KEV+21 d
309 days from disclosure to the Metasploit module
Linked 1 in our graph
Rules that detect it
- public ruleEXPL_CVE_2021_31166_Accept_Encoding_May21_1
Links our graph holds for this CVE, strongest first. The same data is in the graph API.
Indicators none tied yet
No threat feed has tied an indicator to this CVE yet. Checked every six hours.
On the wire 0 dispatches
No dispatch on our wire has named this CVE yet.
Public exploit code 16 known · links only
GitHub PoCs 15Metasploit 1Exploit-DB 0
GitHub PoCs, by trust then stars15
- 0vercl0k/CVE-2021-31166Not checked
first seen by skopnix 18 Oct 2026
- antx-code/CVE-2021-31166Not checked
first seen by skopnix 18 Oct 2026
- bgsilvait/WIn-CVE-2021-31166Not checked
first seen by skopnix 18 Oct 2026
- ConMiko/CVE-2021-31166-exploitNot checked
first seen by skopnix 18 Oct 2026
- corelight/CVE-2021-31166Not checked
first seen by skopnix 18 Oct 2026
- Frankmock/CVE-2021-31166-detection-rulesNot checked
first seen by skopnix 18 Oct 2026
- imiko0u0/CVE-2021-31166-exploitNot checked
first seen by skopnix 18 Oct 2026
- imikoYa/CVE-2021-31166-exploitNot checked
first seen by skopnix 18 Oct 2026
Show 7 more
- mauricelambert/CVE-2021-31166Not checked
first seen by skopnix 18 Oct 2026
- mvlnetdev/CVE-2021-31166-detection-rulesNot checked
first seen by skopnix 18 Oct 2026
- Udyz/CVE-2021-31166Not checked
first seen by skopnix 18 Oct 2026
- y0g3sh-99/CVE-2021-31166-ExploitNot checked
first seen by skopnix 18 Oct 2026
- zecopro/CVE-2021-31166Not checked
first seen by skopnix 18 Oct 2026
- zha0gongz1/CVE-2021-31166Not checked
first seen by skopnix 18 Oct 2026
- ZZ-SOCMAP/CVE-2021-31166Not checked
first seen by skopnix 18 Oct 2026
Fake proof-of-concept repositories have been used to deliver malware to the researchers who run them. The trust verdict is our engine's heuristic over the repository (account age, what it ships, how its stars arrived); it is a reason to read the code first, not a finding about its author.
Metasploit1
This module exploits CVE-2021-31166, a UAF bug in http.sys when parsing specially crafted Accept-Encoding headers that was patched by Microsoft in May 2021, on vulnerable IIS servers. Successful exploitation will result in the target computer BSOD'ing before subsequently rebooting. Note that the target IIS server may or may not come back up, this depends on the target's settings as to whether IIS is configured to start on rebo
ruby · first seen by skopnix 18 Oct 2026
References
Watch this one?
KEV additions reach Telegram and the KEV-only RSS as they land.