SecurityContext

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

IdName
CWE-416Use After Free

Known exploited entries

ListAdded dateDue dateRansomware use
cisa2022-04-062022-04-27no
vulncheck2022-03-24—no

Hackerone

  • Reports: 1
  • Rank: 5211

Public exploits

UrlSourceAdded date
https://github.com/testerxma/cve-2021-31166-pocpoc-in-github2026-10-24
https://github.com/testerxma/cve-2021-31166-poc.gitvulncheck-xdb2026-10-24
https://github.com/liang2kl/iot-exploits.gitvulncheck-xdb2023-07-05
https://github.com/0xmaximus/Home-Demolisher.gitvulncheck-xdb2022-11-22
https://github.com/0xmaximus/Home-Demolisherpoc-in-github2022-11-22

References

UrlSourceTags
https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31166nvdPatch, Vendor Advisory
http://packetstormsecurity.com/files/162722/Microsoft-HTTP-Protocol-Stack-Remote-Code-Execution.htmlnvdThird Party Advisory, VDB Entry
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-31166nvdUS Government Resource
https://static.tenable.com/marketing/whitepapers/Whitepaper-Ransomware_Ecosystem.pdfvulncheckVulncheck Reported Exploitation
https://euvd.enisa.europa.eu/enisa/EUVD-2021-18079vulncheckVulncheck Reported Exploitation
https://www.paloaltonetworks.com/content/dam/pan/en_US/assets/pdf/reports/2022-unit42-ransomware-threat-report-final.pdfvulncheckVulncheck Reported Exploitation

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
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