CVE-2021-31166
CONFIRMED EXPLOITEDMicrosoft HTTP Protocol Stack Remote Code Execution Vulnerability
Is Microsoft HTTP Protocol Stack affected by CVE-2021-31166?
Microsoft HTTP Protocol Stack is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2021-31166, added on 2022-04-06. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (4 vulnerable CPE entries): microsoft windows_10_2004, microsoft windows_10_20h2, microsoft windows_server_2004 and microsoft windows_server_20h2.
Published CPE version bounds mark releases below 10.0.19042.982 as vulnerable. Those bounds describe what is affected, not what patches it: upgrade to the fixed release named in the vendor advisory below, then confirm the installed version with your package manager or scanner.
The CISA remediation deadline for this entry is 2022-04-27.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2026-124194Same vendorMicrosoft Office
Microsoft Office Outlook Missing User Interaction for Potentially Unsafe Action Vulnerability
- CVE-2026-96951Same vendorMicrosoft Windows
Microsoft Windows Command Injection Vulnerability
- CVE-2026-65660Same vendorMicrosoft SharePoint
Microsoft SharePoint Code Injection Vulnerability
- CVE-2026-85880Same vendorMicrosoft Windows
Microsoft Windows Heap-Based Buffer Overflow Vulnerability
- CVE-2017-0148Neighboring entryMicrosoft SMBv1 server
Microsoft SMBv1 Server Remote Code Execution Vulnerability
- CVE-2021-3156Neighboring entrySudo Sudo
Sudo Heap-Based Buffer Overflow Vulnerability
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
Microsoft HTTP Protocol Stack contains a vulnerability in http.sys that allows for remote code execution.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
HTTP Protocol Stack Remote Code Execution Vulnerability
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2022-04-06. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Unknown".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of HTTP Protocol Stack has been compromised.
- CVSS vector indicates high impact to Confidentiality (C:H), Integrity (I:H), and Availability (A:H) of the affected component.
- HTTP / web application surface (Microsoft HTTP Protocol Stack): inspect reverse-proxy, WAF, and application access/error logs alongside `Zeek http.log` and `Suricata eve.json` for anomalous requests targeting exposed endpoints.
- Memory corruption class (CWE-119/416/787): monitor system logs (`dmesg`, `journalctl`, Windows Event ID 1000, crash dumps) for segmentation faults (`SIGSEGV`/`SIGABRT`) or worker process restarts.
- Inventory all hosts running Microsoft HTTP Protocol Stack and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
Apply updates per vendor instructions.
- http://packetstormsecurity.com/files/162722/Microsoft-HTTP-Protocol-Stack-Remote-Code-Execution.htmlThird Party AdvisoryVDB Entry
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31166PatchVendor Advisory
- http://packetstormsecurity.com/files/162722/Microsoft-HTTP-Protocol-Stack-Remote-Code-Execution.htmlThird Party AdvisoryVDB Entry
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31166PatchVendor Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-31166US Government Resource
SCORING & VECTOR TELEMETRY
Primary assessment authored by NIST NVD (nvd@nist.gov).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Rust-powered Windows Event Log (EVTX) fast forensics timeline generator & Sigma engine
Endpoint visibility, digital forensics, and incident response (DFIR) platform
Open-source XDR and SIEM platform for endpoint and cloud security monitoring
VirusTotal's memory-safe Rust rewrite of YARA for binary & implant hunting