CVE-2021-21974: Remote Code Execution in VMware ESXi OpenSLP
- Vendor
- VMware
CVE-2021-21974 is a heap-based buffer overflow in the OpenSLP service used by VMware ESXi. The SLPParseSrvURL function mishandles malformed URL and scopes fields in Directory Agent Advertisement messages. Parsing can extend beyond the URL into the scopes field, causing memcpy to copy more data than the destination heap allocation can hold. An unauthenticated attacker able to reach the service on port 427 can corrupt heap memory and potentially execute arbitrary code remotely. Affected releases are ESXi 7.0 before ESXi70U1c-17325551, ESXi 6.7 before ESXi670-202102401-SG, and ESXi 6.5 before ESXi650-202102101-SG.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise an ESXi host, exposing hosted virtual machines and their data to unauthorized access, modification, and disruption. Attackers can use host-level code execution to deploy malware, establish persistent access, and encrypt virtual-machine disks and configuration data. Exploitation has been associated with the ESXiArgs ransomware campaign, which rendered virtual machines unusable across thousands of exposed hosts.
Mitigation
If you can’t patch tonight, do this now.
If patching cannot be performed immediately, stop and disable the OpenSLP service and disable the CIMSLP firewall ruleset. Restrict or block TCP and UDP port 427, particularly from untrusted networks, and remove unnecessary internet exposure. Isolate ESXi management interfaces and limit access to authorized administrative systems.
Remediation
Patch, then assume compromise.
Apply VMware's fixes for CVE-2021-21974: update ESXi 7.0 to ESXi70U1c-17325551 or later, ESXi 6.7 to ESXi670-202102401-SG or later, and ESXi 6.5 to ESXi650-202102101-SG or later. Prefer migration to a currently supported, fully patched ESXi release rather than retaining legacy versions. VMware Cloud Foundation deployments must also receive the corresponding ESXi component updates.
Exploits
2 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-21974 exploited in the wild?
- Yes. As of Dec 2, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2021-21974?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2021-21974, the earliest disclosed May 25, 2021.
- Is there a patch for CVE-2021-21974?
- Apply VMware's fixes for CVE-2021-21974: update ESXi 7.0 to ESXi70U1c-17325551 or later, ESXi 6.7 to ESXi670-202102401-SG or later, and ESXi 6.5 to ESXi650-202102101-SG or later. Prefer migration to a currently supported, fully patched ESXi release rather than retaining legacy versions.
- What products are affected by CVE-2021-21974?
- Vmware Esxi and Vmware Cloud Foundation.
- How severe is CVE-2021-21974?
- CVE-2021-21974 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 45.1% (99th percentile) as of Dec 2, 2026.
Recent activity
25 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.