Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2021-21974: VMware ESXi OpenSLP Heap Overflow Remote Code Execution

Published Feb 24, 2021 · Updated 1 day ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days4 mentions · peak 3 in a dayToday
CVSS8.8High · v3.1
EPSS45.1%99th percentile
CISA KEVNoNot listed
In the wildReported9 exploitation records in Mallory
Vendor
VMware
IdentifiersCVE-2021-21974CWE-122

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

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.

View more in app →
CVE-2021-21974This repository contains a proof-of-concept (PoC) exploit for CVE-2021-21974, a remote code execution vulnerability in VMware ESXi 6.7.0 (builds 14320388 and 16316930). The main file, '2021-21974-POC.py', is a Python script that targets the Service Location Protocol (SLP) service on port 427 of a vulnerable ESXi host. The exploit crafts and sends a series of SLP protocol messages to trigger the vulnerability, ultimately allowing the attacker to execute arbitrary shell commands on the target system. By default, the payload establishes a reverse shell from the ESXi host to the attacker's machine at 192.168.0.194:80 using a named pipe at /tmp/backpipe. The script is operational and requires the attacker to specify the target's IP address as a command-line argument. The repository also includes a brief README.md describing the exploit's purpose. No detection scripts or framework integration are present; the code is a standalone exploit PoC.Shadow0ps · Disclosed May 25, 2021 · python · networkPoCCVE-2021-21974This repository provides a proof-of-concept (PoC) exploit for CVE-2021-21974, a remote code execution vulnerability in the OpenSLP service of VMware ESXi (7.x and earlier). The main exploit script, '2021-21974-POC.py', is a Python 3 program that connects to the target ESXi host on TCP port 427 (the default OpenSLP port) and sends crafted SLP packets to trigger the vulnerability. Upon successful exploitation, it executes a shell command on the target that creates a named pipe and attempts to establish a reverse shell connection back to the attacker's machine at 192.168.0.194:80 using netcat. The repository also includes a README.md with detailed usage instructions, requirements, and mitigation advice, and a requirements.txt listing Python dependencies. The exploit is intended for educational and research purposes only and is not weaponized; the payload IP address must be changed by the user to receive the reverse shell. The attack vector is network-based, requiring only network access to the vulnerable ESXi host.mercylessghost · Disclosed Jan 10, 2025 · python · networkPoC
Exposure surface

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.

VendorProductType
VMwareVmware Cloud Foundationapplication
VMwareVmware Esxioperating_system
FAQ

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.
Activity feed

Recent activity

22 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+15 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence4Every report linking this CVE to a named adversary.
Associated malware10Malware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.