Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2021-21974: Remote Code Execution in VMware ESXi OpenSLP

Published Feb 24, 2021 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days6 mentions · peak 3 in a dayToday
CVSS8.8High · v3.1
EPSS45.1%99th percentile
CISA KEVNoNot listed
In the wildReported11 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 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.

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

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

Recent activity

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

View more in app →
+18 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 malware11Malware 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.