CVE-2021-31166: HTTP Protocol Stack - Remote Code Execution
- Cve: CVE-2021-31166
- Name: HTTP Protocol Stack - Remote Code Execution
- Description: HTTP Protocol Stack Remote Code Execution Vulnerability
- Impact: Remote attackers can execute arbitrary code on the affected system, potentially leading to full system compromise.
- Remediation: Update to the latest version of the HTTP Protocol Stack or apply the latest security patches.
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.99867
- Epss percentile: 0.99962
- Assignee: [email protected]
- Published at: 2021-05-11T19:15:09Z
- Age in days: 2023
- Modified at: 2026-06-17T03:51:21Z
- Patch available: yes
- Public exploits total: 26
- References total: 6
- Products total: 4
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-31166
- Nvd status: analyzed
- Checked, none or zero: nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: vulnerability type, requirements
Cwe
| Id | Name |
|---|---|
| CWE-416 | Use After Free |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| cisa | 2022-04-06 | 2022-04-27 | no |
| vulncheck | 2022-03-24 | — | no |
Hackerone
- Reports: 1
- Rank: 5211
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/testerxma/cve-2021-31166-poc | poc-in-github | 2026-10-24 |
| https://github.com/testerxma/cve-2021-31166-poc.git | vulncheck-xdb | 2026-10-24 |
| https://github.com/liang2kl/iot-exploits.git | vulncheck-xdb | 2023-07-05 |
| https://github.com/0xmaximus/Home-Demolisher.git | vulncheck-xdb | 2022-11-22 |
| https://github.com/0xmaximus/Home-Demolisher | poc-in-github | 2022-11-22 |
References
| Url | Source | Tags |
|---|---|---|
| https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31166 | nvd | Patch, Vendor Advisory |
| http://packetstormsecurity.com/files/162722/Microsoft-HTTP-Protocol-Stack-Remote-Code-Execution.html | nvd | Third Party Advisory, VDB Entry |
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-31166 | nvd | US Government Resource |
| https://static.tenable.com/marketing/whitepapers/Whitepaper-Ransomware_Ecosystem.pdf | vulncheck | Vulncheck Reported Exploitation |
| https://euvd.enisa.europa.eu/enisa/EUVD-2021-18079 | vulncheck | Vulncheck Reported Exploitation |
| https://www.paloaltonetworks.com/content/dam/pan/en_US/assets/pdf/reports/2022-unit42-ransomware-threat-report-final.pdf | vulncheck | Vulncheck Reported Exploitation |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| microsoft:windows_10_20h2 | < 10.0.19042.982 | /v1/products/microsoft/windows_10_20h2 |
| microsoft:windows_server_20h2 | < 10.0.19042.982 | /v1/products/microsoft/windows_server_20h2 |
| microsoft:windows_10_2004 | < 10.0.19041.982 | /v1/products/microsoft/windows_10_2004 |
| microsoft:windows_server_2004 | < 10.0.19041.982 | /v1/products/microsoft/windows_server_2004 |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Known exploited: yes
- Known exploited since: 2022-04-06
- Known exploited by: cisa, vulncheck
- Vulncheck known exploited since: 2022-03-24
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 26
- Public exploit first date: 2021-05-16
- Remote: yes
- Hackerone reports: 1
- Exposed hosts: 10394539
- Checked, none or zero: initial access, authentication required
- Not known: nuclei template, initial access since