Skip to content
skopnix

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

309 days from disclosure to the Metasploit module
2023202420252026Disclosed 11 May 2021Metasploit 16 Mar 2022KEV 6 Apr 2022today
  1. Disclosed
  2. Metasploit+309 d
  3. KEV+21 d

309 days from disclosure to the Metasploit module

Linked 1 in our graph

Rules that detect it

  1. 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

  1. first seen by skopnix 18 Oct 2026

  2. first seen by skopnix 18 Oct 2026

  3. first seen by skopnix 18 Oct 2026

  4. first seen by skopnix 18 Oct 2026

  5. first seen by skopnix 18 Oct 2026

  6. first seen by skopnix 18 Oct 2026

  7. first seen by skopnix 18 Oct 2026

  8. first seen by skopnix 18 Oct 2026

Show 7 more
  1. first seen by skopnix 18 Oct 2026

  2. first seen by skopnix 18 Oct 2026

  3. first seen by skopnix 18 Oct 2026

  4. first seen by skopnix 18 Oct 2026

  5. first seen by skopnix 18 Oct 2026

  6. first seen by skopnix 18 Oct 2026

  7. 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

  1. 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.

Telegram ↗KEV RSSAPIStack check