HTTP Protocol Stack Remote Code Execution Vulnerability
CVE-2021-31166
Score elevated to 9.8 because this CVE is listed on the CISA Known Exploited Vulnerabilities catalog (added 2022-04-06), indicating real-world exploitation has been confirmed by US federal agencies. NVD baseline CVSS 9.8 retained for reference. Confidence: HIGH.
- Actively exploited in the wild (CISA-KEV)
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8CRITICALhigh confidence
- EG Risk
- 99EG Risk 99/100CISA SSVC
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation100% × 40%Automatability100% × 15%CISA SSVC: Attend at low mission impact; Act at medium or high.Action: A fix is available. Apply it sooner than your standard update timelines at low mission impact and as soon as possible at medium or high. - EPSS PROB
- 100%
- EPSS %ILE
- 99th
- KEV
- ⚠ Exploited
CISA SSVCAttend at low mission impact; Act at medium or high.
A fix is available. Apply it sooner than your standard update timelines at low mission impact and as soon as possible at medium or high.
Exploitation active (CISA Vulnrichment) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table
Published
May 11, 2021
Last Modified
October 30, 2025
Advisory Details (3)
Auto-updated Oct 1, 2026Known Exploited Vulnerabilities Catalog | CISA
Known Exploited Vulnerabilities Catalog | CISA. Listed in CISA Known Exploited Vulnerabilities catalog.
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-31166Security Update Guide - Microsoft Security Response Center
Security Update Guide - Microsoft Security Response Center. Patch available via Microsoft Security Update
https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31166Packet Storm - Human Validation
http://packetstormsecurity.com/files/162722/Microsoft-HTTP-Protocol-Stack-Remote-Code-Execution.htmlVendor Advisories for CVE-2021-31166(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 94× in last 7d / 399× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 1,621 total refreshes for this CVE.
- 2026-10-04 10:54 UTCVendor advisory
- 2026-10-04 10:54 UTCGHSA enrichment
- 2026-10-04 07:10 UTCVendor advisory
- 2026-10-04 07:10 UTCGHSA enrichment
- 2026-10-04 03:26 UTCVendor advisory
- 2026-10-04 03:26 UTCGHSA enrichment
- 2026-10-03 23:42 UTCVendor advisory
- 2026-10-03 23:42 UTCGHSA enrichment
- 2026-10-03 19:57 UTCVendor advisory
- 2026-10-03 19:57 UTCGHSA enrichment
- 2026-10-03 16:13 UTCVendor advisory
- 2026-10-03 16:13 UTCGHSA enrichment
- 2026-10-03 12:29 UTCVendor advisory
- 2026-10-03 12:29 UTCGHSA enrichment
- 2026-10-03 08:44 UTCVendor advisory
- 2026-10-03 08:44 UTCGHSA enrichment
- 2026-10-03 04:58 UTCVendor advisory
- 2026-10-03 04:58 UTCGHSA enrichment
- 2026-10-03 01:14 UTCVendor advisory
- 2026-10-03 01:14 UTCGHSA enrichment
- 2026-10-02 21:30 UTCVendor advisory
- 2026-10-02 21:30 UTCGHSA enrichment
- 2026-10-02 17:45 UTCVendor advisory
- 2026-10-02 17:45 UTCGHSA enrichment
- 2026-10-02 14:00 UTCVendor advisory
Show 75 moreShow fewer
- 2026-10-02 14:00 UTCGHSA enrichment
- 2026-10-02 10:16 UTCVendor advisory
- 2026-10-02 10:16 UTCGHSA enrichment
- 2026-10-02 06:32 UTCVendor advisory
- 2026-10-02 06:32 UTCGHSA enrichment
- 2026-10-02 02:47 UTCVendor advisory
- 2026-10-02 02:47 UTCGHSA enrichment
- 2026-10-01 23:00 UTCVendor advisory
- 2026-10-01 23:00 UTCGHSA enrichment
- 2026-10-01 19:16 UTCVendor advisory
- 2026-10-01 19:16 UTCGHSA enrichment
- 2026-10-01 15:32 UTCVendor advisory
- 2026-10-01 15:32 UTCGHSA enrichment
- 2026-10-01 11:48 UTCVendor advisory
- 2026-10-01 11:48 UTCGHSA enrichment
- 2026-10-01 08:01 UTCVendor advisory
- 2026-10-01 08:01 UTCGHSA enrichment
- 2026-10-01 04:17 UTCVendor advisory
- 2026-10-01 04:17 UTCGHSA enrichment
- 2026-10-01 00:33 UTCVendor advisory
- 2026-10-01 00:33 UTCGHSA enrichment
- 2026-09-30 20:48 UTCVendor advisory
- 2026-09-30 20:48 UTCGHSA enrichment
- 2026-09-30 17:04 UTCVendor advisory
- 2026-09-30 17:04 UTCGHSA enrichment
- 2026-09-30 13:20 UTCVendor advisory
- 2026-09-30 13:20 UTCGHSA enrichment
- 2026-09-30 09:35 UTCVendor advisory
- 2026-09-30 09:35 UTCGHSA enrichment
- 2026-09-30 05:52 UTCVendor advisory
- 2026-09-30 05:52 UTCGHSA enrichment
- 2026-09-30 02:07 UTCVendor advisory
- 2026-09-30 02:07 UTCGHSA enrichment
- 2026-09-29 22:23 UTCVendor advisory
- 2026-09-29 22:23 UTCGHSA enrichment
- 2026-09-29 18:36 UTCVendor advisory
- 2026-09-29 18:35 UTCGHSA enrichment
- 2026-09-29 14:49 UTCVendor advisory
- 2026-09-29 14:49 UTCGHSA enrichment
- 2026-09-29 11:04 UTCVendor advisory
- 2026-09-29 11:04 UTCGHSA enrichment
- 2026-09-29 07:20 UTCVendor advisory
- 2026-09-29 07:20 UTCGHSA enrichment
- 2026-09-29 03:36 UTCVendor advisory
- 2026-09-29 03:36 UTCGHSA enrichment
- 2026-09-28 23:51 UTCEG score recompute
- 2026-09-28 23:51 UTCVendor advisory
- 2026-09-28 23:51 UTCGHSA enrichment
- 2026-09-28 20:06 UTCVendor advisory
- 2026-09-28 20:05 UTCGHSA enrichment
- 2026-09-28 16:20 UTCVendor advisory
- 2026-09-28 16:20 UTCGHSA enrichment
- 2026-09-28 12:35 UTCVendor advisory
- 2026-09-28 12:35 UTCGHSA enrichment
- 2026-09-28 08:51 UTCVendor advisory
- 2026-09-28 08:51 UTCGHSA enrichment
- 2026-09-28 05:07 UTCVendor advisory
- 2026-09-28 05:07 UTCGHSA enrichment
- 2026-09-28 01:23 UTCVendor advisory
- 2026-09-28 01:23 UTCGHSA enrichment
- 2026-09-27 21:51 UTCCISA KEV update
- 2026-09-27 21:39 UTCVendor advisory
- 2026-09-27 21:39 UTCGHSA enrichment
- 2026-09-27 17:55 UTCVendor advisory
- 2026-09-27 17:55 UTCGHSA enrichment
- 2026-09-27 14:10 UTCEG score recompute
- 2026-09-27 14:10 UTCVendor advisory
- 2026-09-27 14:10 UTCGHSA enrichment
- 2026-09-27 13:41 UTCEPSS rescore
- 2026-09-27 10:27 UTCVendor advisory
- 2026-09-27 10:26 UTCGHSA enrichment
- 2026-09-27 06:41 UTCVendor advisory
- 2026-09-27 06:40 UTCGHSA enrichment
- 2026-09-27 02:56 UTCVendor advisory
- 2026-09-27 02:56 UTCGHSA enrichment
Publicly available exploits
(10 references)Working exploit code is in the public domain (1 Metasploit module) (9 GitHub PoCs). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Metasploitauxiliary/dos/windows/http/http_sys_accept_encoding_dos_cve_2021_31166✓ verifiedFirst seen May 11, 2021
Windows IIS HTTP Protocol Stack DOS
Open source ↗ - GitHub PoC0xmaximus/Home-DemolisherFirst seen Nov 22, 2022
PoC for CVE-2021-31166 and CVE-2022-21907
Open source ↗ - GitHub PoCmauricelambert/CVE-2021-31166First seen Mar 7, 2022
CVE-2021-31166: exploitation with Powershell, Python, Ruby, NMAP and Metasploit.
Open source ↗ - GitHub PoCiranzai/CVE-2021-31166-exploitFirst seen Oct 20, 2021
Just a simple CVE-2021-31166 exploit tool
Open source ↗ - GitHub PoCZZ-SOCMAP/CVE-2021-31166First seen Sep 27, 2021
Windows HTTP协议栈远程代码执行漏洞 CVE-2021-31166
Open source ↗ - GitHub PoCy0g3sh-99/CVE-2021-31166-ExploitFirst seen Jul 3, 2021
Exploit for MS Http Protocol Stack RCE vulnerability (CVE-2021-31166)
Open source ↗ - GitHub PoCzecopro/CVE-2021-31166First seen May 19, 2021
simple bash script for exploit CVE-2021-31166
Open source ↗ - GitHub PoCcorelight/CVE-2021-31166First seen May 17, 2021
HTTP Protocol Stack CVE-2021-31166
Open source ↗ - GitHub PoCmvlnetdev/CVE-2021-31166-detection-rulesFirst seen May 17, 2021
Different rules to detect if CVE-2021-31166 is being exploited
Open source ↗ - GitHub PoCzha0gongz1/CVE-2021-31166First seen May 17, 2021
PoC for CVE-2021-31166, a remote HTTP.sys use-after-free triggered remotely. Although it was defined as remote command execution, it can only cause the system to crash.
Open source ↗
Related CVEs(same CWE)
Frequently asked(6)
What is CVE-2021-31166?
When was CVE-2021-31166 disclosed?
Is CVE-2021-31166 actively exploited?
What is the CVSS score of CVE-2021-31166?
Which products are affected by CVE-2021-31166?
How do I remediate CVE-2021-31166?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2021-31166
Is Your Infrastructure Affected by CVE-2021-31166?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.