CVE-2021-21974: VMware ESXi OpenSLP Heap Overflow Remote Code Execution
- Vendor
- VMware
CVE-2021-21974 is a heap-based buffer overflow in the OpenSLP service used by VMware ESXi. The vulnerability occurs in SLPParseSrvURL when processing a crafted Directory Agent Advertisement message. URL parsing can extend into the adjacent scopes field, causing memcpy to copy more data than the URL-sized heap allocation can hold. An unauthenticated attacker with network access to the service on port 427 can potentially achieve remote code execution. Affected releases are ESXi 7.0 before ESXi70U1c-17325551, 6.7 before ESXi670-202102401-SG, and 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 permits arbitrary code execution on the ESXi hypervisor, threatening the confidentiality, integrity, and availability of the host and its virtualized workloads. Host compromise can enable malware deployment, manipulation of virtual-machine data, and disruption of multiple hosted systems. Exploitation has been reported in connection with ESXiArgs ransomware campaigns that encrypt virtual-machine data and configuration files, rendering workloads unusable.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, stop and disable the OpenSLP service and disable the CIMSLP firewall ruleset. Block untrusted access to TCP and UDP port 427, isolate ESXi management interfaces, and remove direct internet exposure. Disabling SLP can prevent CIM clients from discovering CIM servers through SLP. Re-enable the service only after updating to a fixed release and confirming it is operationally required.
Remediation
Patch, then assume compromise.
Apply VMware's fixes for CVE-2021-21974: ESXi 7.0 build ESXi70U1c-17325551 or later, ESXi 6.7 patch ESXi670-202102401-SG or later, or ESXi 6.5 patch ESXi650-202102101-SG or later. Upgrade unsupported installations to a supported, patched release. Investigate previously exposed vulnerable hosts for compromise; patching closes the vulnerability but does not remove malware or persistence established before the update.
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 Nov 27, 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: ESXi 7.0 build ESXi70U1c-17325551 or later, ESXi 6.7 patch ESXi670-202102401-SG or later, or ESXi 6.5 patch ESXi650-202102101-SG or later. Upgrade unsupported installations to a supported, patched release.
- 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 Nov 27, 2026.
Recent activity
22 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.