{"schemaVersion":4,"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.99962,"severity":"critical","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.99867},"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":null},{"date":"2026-10-21T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.99867,"percentile":0.99962}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.99867,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.99867,"percentile":0.99962}]},"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,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"10.0.19041.982","endInclusive":false}}],"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,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"10.0.19042.982","endInclusive":false}}],"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,"bounds":{"kind":"range","start":"10.0.0","startInclusive":true,"end":"10.0.19041.982","endInclusive":false}}],"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,"bounds":{"kind":"range","start":"10.0.0","startInclusive":true,"end":"10.0.19042.982","endInclusive":false}}],"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,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"10.0.19041.982","endInclusive":false}}],"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,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"10.0.19042.982","endInclusive":false}}],"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,"bounds":{"kind":"range","start":"10.0.0","startInclusive":true,"end":"10.0.19041.982","endInclusive":false}}],"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,"bounds":{"kind":"range","start":"10.0.0","startInclusive":true,"end":"10.0.19042.982","endInclusive":false}}],"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}],"priority":{"label":"act-now","tag":"listed-as-exploited","reason":"Listed as exploited by CISA (06-04-2022)","nextStep":"Check the vendor advisory","rank":[0,1,0,2,100,98],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.99867,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2025-10-21T23:25:45.988Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.8,"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","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2025-10-21T23:25:45.988Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2025-10-21T23:25:45.988Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","version":"2.0"},{"type":"adp","source":"cisa-adp","date":"2025-02-07T14:36:57.411Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"active"},{"type":"catalog","source":"cisa","date":"2022-04-06T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"ransomware":false},{"type":"exploit","source":"metasploit","date":"2021-05-11T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"maturity":"weaponized","verified":false}],"epss":{"value":0.99867,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T02:02:32.515Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T02:02:33.061Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T02:02:33.247Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T02:00:57.638Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T02:02:28.824Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T02:02:28.182Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T02:31:24.942Z","stale":false,"partial":false}}