Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2021-21974 — Proof-of-concept exploit for CVE-2021-21974, a remote code execution vulnerability in VMware ESXi OpenSLP service. Demonstrates unauthenticated RCE on affected hosts for security research. | Kitploit
Tools/GitHubGitHub/mercylessghost/cve-2021-21974
Vulnerability AnalysisExploitationPenetration TestingLearning & EducationRemote Access Tool
GitHubmercylessghost/cve-2021-21974

CVE-2021-21974

Proof-of-concept exploit for CVE-2021-21974, a remote code execution vulnerability in VMware ESXi OpenSLP service. Demonstrates unauthenticated RCE on affected hosts for security research.

View Repository
11 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2021-21974 PoC - VMware ESXi RCE Exploit

Description

This repository contains a Proof of Concept (PoC) for the vulnerability CVE-2021-21974, a remote code execution (RCE) vulnerability in the OpenSLP service of VMware ESXi. Successful exploitation could allow an unauthenticated attacker to execute arbitrary code on the affected ESXi host.

  • CVE ID: CVE-2021-21974
  • Impact: Remote Code Execution (RCE)
  • Severity: High (CVSS 8.8)
  • Affected Product: VMware ESXi (7.x and earlier)
  • Affected Component: OpenSLP Service

Requirements

Before running the PoC, make sure you have the following:

  1. Python 3.8+
  2. Dependencies listed in the requirements.txt file (see the installation section)
  3. Network access to the vulnerable VMware ESXi host

Installation

  1. Clone this repository:

    root@kitploit:~
    git clone https://github.com/example/cve-2021-21974-poc.git
    cd cve-2021-21974-poc
    
  • Install the dependencies:

    root@kitploit:~
    pip install -r requirements.txt
    
  • Usage

    Warning: This PoC was created for educational and research purposes. Do not use this code on systems you do not have explicit permission to test.

    1. Configure the target (vulnerable ESXi host):

      • Update the config.json file with the host IP address and other relevant information.
    2. Run the exploit:

      root@kitploit:~
      python3 exploit.py --target <IP_DO_ALVO>
      
    3. After execution, the PoC will attempt to exploit the vulnerability and demonstrate remote code execution on the vulnerable ESXi host.

    Mitigations

    To protect systems against the CVE-2021-21974 vulnerability, apply the following fixes:

    1. Update VMware ESXi to a patched version:

      • Updates available at: VMware Security Advisory
    2. Disable the OpenSLP service (if not needed):

      • Refer to the official VMware documentation to disable OpenSLP.
    3. Implement firewalls and Access Control Lists (ACLs):

      • Restrict access to the OpenSLP service ports.

    References

    • VMware Security Advisory VMSA-2021-0002
    • CVE Details - CVE-2021-21974

    Legal Disclaimer

    This repository was created solely for educational and security research purposes. Misuse of this code may result in legal action. The author is not responsible for any damage or misuse.


    Author: Mercylessghost

    License: MIT

    Download Tool