LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

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

RBRecent Breaches Vulnerability Intelligence·Apr 6, 2022
High⚠ Actively exploited (CISA KEV)
High
Severity
Active
CISA KEV
No
Ransomware use
Apr 27, 2022
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2021-31166 to its Known Exploited Vulnerabilities catalog on Apr 6, 2022, with a federal patch deadline of Apr 27, 2022 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

Microsoft HTTP Protocol Stack contains a vulnerability in http.sys that allows for remote code execution.

CVE-2021-31166 is a remote code execution vulnerability in the Microsoft HTTP Protocol Stack, specifically in the http.sys component that handles HTTP traffic on Windows systems. An unauthenticated attacker who can reach a vulnerable system over the network may be able to execute code in the context of the affected service. Because http.sys sits in the kernel and processes web requests for many Windows roles and applications, successful exploitation can give an attacker a powerful foothold. Public detail on exact attack mechanics is limited; teams should treat any internet-facing or broadly reachable Windows HTTP endpoint as in scope until they confirm otherwise against the vendor advisory.

How it works

The weakness is classified as CWE-416 (use-after-free). In a use-after-free flaw, memory that has already been freed is later accessed again. If an attacker can influence the timing or content of requests that trigger allocation, free, and reuse of that memory inside http.sys, they may corrupt kernel structures or redirect control flow. The CISA summary states that the vulnerability in http.sys allows remote code execution. No further exploit specifics are provided here; defenders should not assume particular packet formats or preconditions beyond what Microsoft documents in its advisory. In general for this class, a crafted HTTP request sequence is sufficient to reach the vulnerable code path when the stack is listening and processing traffic.

Am I affected? How to find it in your systems

The Microsoft HTTP Protocol Stack (http.sys) is a core Windows component used by IIS, HTTP.sys-based services, WinRM, and many third-party applications that bind to HTTP.sys rather than implementing their own stack. It commonly appears on Windows Server installations running web workloads, management endpoints, or any role that accepts HTTP/HTTPS connections at the kernel level.

How to remediate

Patch first. CISA’s required action is to apply updates per vendor instructions. Obtain and deploy the security updates Microsoft released for CVE-2021-31166 on all affected systems, following your standard change and test process. Confirm installation via the vendor’s published KB articles or update inventory tools.

If you can't patch immediately

Implement compensating controls while you schedule the update. These reduce likelihood or impact but do not replace the vendor patch.

If your data may have been exposed

Actively exploited remote code execution vulnerabilities can lead to full system compromise and subsequent data theft or ransomware, although known ransomware use is not documented for this CVE in the provided facts. If you have evidence of exploitation or have run vulnerable internet-facing instances, follow your incident response process: isolate affected hosts, preserve evidence, and assess lateral movement and data access. As a routine check, you can run a free exposure scan of your email addresses against known breach datasets to see whether credentials or personal data associated with your accounts have appeared in prior breaches, then force password resets and enable stronger authentication where needed.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedMicrosoft · HTTP Protocol Stack
WeaknessCWE-416
Added to CISA KEVApr 6, 2022
Federal patch deadlineApr 27, 2022
Known ransomware useNot documented
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities