Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2021-31166: Microsoft HTTP Protocol Stack Remote Code Execution Vulnerability

100
Patch now
CRITICAL 9.8EXPLOITEDREMOTEWATCHLISTUPGRADEUPGRADEUPGRADE

CVE-2021-31166 is a critical-severity flaw (CVSS 9.8) affecting windows 10 2004, windows 10 20h2, windows server 2004, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

HTTP Protocol Stack Remote Code Execution Vulnerability

Why this priority

  • Critical severity
  • EPSS top 1%: very likely to be exploited
  • Exploited in the wild (CISA KEV)
  • Public exploit reference
  • CISA SSVC: automatable with total technical impact
  • Remotely exploitable, no login, no user action
  • On your watchlist

A fixed release or distro patch exists.

Risk facts

CVSS score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance99.9% (top 1%)
CISA exploited listYes, fix due 2022-04-27
WeaknessCWE-416
Published2021-05-11
Last modified2026-06-17
Publisher (CNA): Microsoft Corporation · Vendor: microsoft

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

microsoft windows 10 2004 UPGRADE
Affected: < 10.0.19041.982
Fixed in: 10.0.19041.982
Safe to downgrade to: no unaffected older release
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
microsoft windows 10 20h2 UPGRADE
Affected: < 10.0.19042.982
Fixed in: 10.0.19042.982
Safe to downgrade to: no unaffected older release
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
microsoft windows server 2004 UPGRADE
Affected: < 10.0.19041.982
Fixed in: 10.0.19041.982
Safe to downgrade to: no unaffected older release
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
microsoft windows server 20h2 UPGRADE
Affected: < 10.0.19042.982
Fixed in: 10.0.19042.982
Safe to downgrade to: no unaffected older release
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.

Exact fixes by distribution

Fedora 46 · bitcoin-core-selinux · FIXED · 0.3-2.fc46 · FEDORA-2026-51fc806272 · source
sudo dnf upgrade --advisory=FEDORA-2026-51fc806272
Fedora ELN · guestfs-tools · FIXED · 1.57.5-1.eln159 · FEDORA-2026-9577c5ec16 · source
sudo dnf upgrade --advisory=FEDORA-2026-9577c5ec16

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · CISA KEV catalog · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2021-31166?

windows 10 2004: upgrade to 10.0.19041.982; windows 10 20h2: upgrade to 10.0.19042.982; windows server 2004: upgrade to 10.0.19041.982. Exact commands for each OS are on this page.

Is CVE-2021-31166 being exploited?

Yes. CVE-2021-31166 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.

What does CVE-2021-31166 affect?

CVE-2021-31166 affects windows 10 2004, windows 10 20h2, windows server 2004. Severity is critical (CVSS 9.8). HTTP Protocol Stack Remote Code Execution Vulnerability

How urgent is CVE-2021-31166?

Priority 100/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action; On your watchlist

Software pages

Windows vulnerabilities · Windows Server vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.