{"schemaVersion":3,"id":"CVE-2021-31166","aliases":[],"status":"published","duplicateOf":null,"title":"Microsoft HTTP Protocol Stack Remote Code Execution Vulnerability","description":"HTTP Protocol Stack Remote Code Execution Vulnerability","dates":{"published":"2021-05-11T19:11:19.000Z","modified":"2025-10-21T23:25:45.988Z","reserved":null,"kevAdded":["2022-04-06T00:00:00.000Z"],"kevDue":["2022-04-27T00:00:00.000Z"]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.99867,"percentile":0.99963,"severity":"critical","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.09499999999998954,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.99772},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.99867,"percentile":0.99963}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.99772,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.99867,"percentile":0.99963}]},"kev":{"state":"listed","entries":[{"source":"cisa","sourceLabel":"CISA","dateAdded":"2022-04-06T00:00:00.000Z","dueDate":"2022-04-27T00:00:00.000Z","requiredAction":"Apply updates per vendor instructions.","name":"Microsoft HTTP Protocol Stack Remote Code Execution Vulnerability","description":"Microsoft HTTP Protocol Stack contains a vulnerability in http.sys that allows for remote code execution.","notes":[{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2021-31166","label":"nvd.nist.gov/vuln/detail/CVE-2021-31166"}],"vendor":"Microsoft","product":"HTTP Protocol Stack","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}],"listedCount":1,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":true,"entry":{"source":"cisa","sourceLabel":"CISA","dateAdded":"2022-04-06T00:00:00.000Z","dueDate":"2022-04-27T00:00:00.000Z","requiredAction":"Apply updates per vendor instructions.","name":"Microsoft HTTP Protocol Stack Remote Code Execution Vulnerability","description":"Microsoft HTTP Protocol Stack contains a vulnerability in http.sys that allows for remote code execution.","notes":[{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2021-31166","label":"nvd.nist.gov/vuln/detail/CVE-2021-31166"}],"vendor":"Microsoft","product":"HTTP Protocol Stack","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"MSF_AUXILIARY_DOS_WINDOWS_HTTP_HTTP_SYS_ACCEPT_ENCODING_DOS_CVE_2021_31166","name":"Windows IIS HTTP Protocol Stack DOS","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/dos/windows/http/http_sys_accept_encoding_dos_cve_2021_31166.rb","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"auxiliary/dos/windows/http/http_sys_accept_encoding_dos_cve_2021_31166","rank":"300","rankName":"normal","postAuth":false,"check":false,"stability":["crash-os-restarts"],"sideEffects":["ioc-in-logs","screen-effects"],"reliability":[]}}],"exploitCount":1,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"microsoft","product":"windows_10_2004","name":"windows 10 2004","label":"windows_10_2004","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"< 10.0.19041.982","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.0.19041.982","eol":null,"hubHref":"/vendor/microsoft/windows_10_2004"},{"vendor":"microsoft","product":"windows_10_20h2","name":"windows 10 20h2","label":"windows_10_20h2","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"< 10.0.19042.982","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.0.19042.982","eol":null,"hubHref":"/vendor/microsoft/windows_10_20h2"},{"vendor":"microsoft","product":"windows 10 version 2004","name":"Windows 10 Version 2004","label":"windows 10 version 2004","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 10.0.0, < 10.0.19041.982","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 10.0.0, < 10.0.19041.982","eol":null,"hubHref":"/vendor/microsoft/windows_10_version_2004"},{"vendor":"microsoft","product":"windows 10 version 20h2","name":"Windows 10 Version 20H2","label":"windows 10 version 20h2","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 10.0.0, < 10.0.19042.982","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 10.0.0, < 10.0.19042.982","eol":null,"hubHref":"/vendor/microsoft/windows_10_version_20h2"},{"vendor":"microsoft","product":"windows_server_2004","name":"windows server 2004","label":"windows_server_2004","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"< 10.0.19041.982","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.0.19041.982","eol":null,"hubHref":"/vendor/microsoft/windows_server_2004"},{"vendor":"microsoft","product":"windows_server_20h2","name":"windows server 20h2","label":"windows_server_20h2","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"< 10.0.19042.982","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.0.19042.982","eol":null,"hubHref":"/vendor/microsoft/windows_server_20h2"},{"vendor":"microsoft","product":"windows server version 2004","name":"Windows Server version 2004","label":"windows server version 2004","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 10.0.0, < 10.0.19041.982","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 10.0.0, < 10.0.19041.982","eol":null,"hubHref":"/vendor/microsoft/windows_server_version_2004"},{"vendor":"microsoft","product":"windows server version 20h2","name":"Windows Server version 20H2","label":"windows server version 20h2","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 10.0.0, < 10.0.19042.982","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 10.0.0, < 10.0.19042.982","eol":null,"hubHref":"/vendor/microsoft/windows_server_version_20h2"}],"affectedCount":8,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31166","label":"portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31166","hostname":"portal.msrc.microsoft.com","tags":["X Refsource MISC","Patch","Vendor Advisory"]},{"url":"http://packetstormsecurity.com/files/162722/Microsoft-HTTP-Protocol-Stack-Remote-Code-Execution.html","label":"packetstormsecurity.com/files/162722/Microsoft-HTTP-Protocol-Stack-Remote-Code-Execution.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","Third Party Advisory","VDB Entry"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-31166","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-31166","hostname":"www.cisa.gov","tags":["Government Resource","US Government Resource"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-05-11T19:11:19.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"kev-added","date":"2022-04-06T00:00:00.000Z","label":"Added to CISA KEV","detail":"Microsoft HTTP Protocol Stack Remote Code Execution Vulnerability","source":"cisa"},{"kind":"kev-due","date":"2022-04-27T00:00:00.000Z","label":"CISA remediation due","detail":"Apply updates per vendor instructions.","source":"cisa"},{"kind":"modified","date":"2025-10-21T23:25:45.988Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":85,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T14:33:09.604Z","stale":false,"partial":false}}