VMware vCenter Server Virtual SAN Health Check plug-in RCE (CVE-2021-21985) (direct check) - Nessus
Critical Plugin ID: 150163This page contains detailed information about the VMware vCenter Server Virtual SAN Health Check plug-in RCE (CVE-2021-21985) (direct check) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.
Plugin Overview
ID: 150163
Name: VMware vCenter Server Virtual SAN Health Check plug-in RCE (CVE-2021-21985) (direct check)
Filename: vmware_vcenter_cve-2021-21985.nbin
Vulnerability Published: 2021-05-25
This Plugin Published: 2021-06-03
Last Modification Time: 2022-02-14
Plugin Version: 1.12
Plugin Type: remote
Plugin Family: Misc.
Dependencies:
vmware_vcenter_detect.nbin
Required KB Items [?]: Host/VMware/vCenter
Vulnerability Information
Severity: Critical
Vulnerability Published: 2021-05-25
Patch Published: 2021-05-25
CVE [?]: CVE-2021-21985
CPE [?]: cpe:/a:vmware:vcenter_server
Synopsis
The remote VMware vCenter Server host is missing a security patch and is affected by a remote code execution vulnerability.
Description
The vSphere Client (HTML5) contains a remote code execution vulnerability in a vCenter Server plugin. A malicious actor with network access to port 443 may exploit this issue to execute commands with unrestricted privileges on the underlying operating system that hosts vCenter Server. This affects VMware vCenter Server (7.x before 7.0 U2b, 6.7 before 6.7 U3n, and 6.5 before 6.5 U3p) and VMware Cloud Foundation (4.x before 4.2.1 and 3.x before 3.10.2.1).
Solution
Apply the appropriate patch as referenced in the vendor advisory.
Public Exploits
Target Network Port(s): 443
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, GitHub)
Exploit Ease: Exploits are available
Here's the list of publicly known exploits and PoCs for verifying the VMware vCenter Server Virtual SAN Health Check plug-in RCE (CVE-2021-21985) (direct check) vulnerability:
- Metasploit: exploit/linux/http/vmware_vcenter_vsan_health_rce
[VMware vCenter Server Virtual SAN Health Check Plugin RCE] - GitHub: https://github.com/7roublemaker/VMware-RCE-check
[CVE-2021-21985] - GitHub: https://github.com/DaveCrown/vmware-kb82374
[CVE-2021-21985] - GitHub: https://github.com/HynekPetrak/HynekPetrak
[CVE-2021-21985] - GitHub: https://github.com/Mr-xn/Penetration_Testing_POC
[CVE-2021-21985] - GitHub: https://github.com/Pluto-123/cve-2021-21985
[CVE-2021-21985: asjbdjbsad] - GitHub: https://github.com/SexyBeast233/SecBooks
[CVE-2021-21985] - GitHub: https://github.com/Spacial/awesome-csirt
[CVE-2021-21985] - GitHub: https://github.com/alt3kx/CVE-2021-21985
[CVE-2021-21985] - GitHub: https://github.com/alt3kx/CVE-2021-21985_PoC
[CVE-2021-21985] - GitHub: https://github.com/aristosMiliaressis/CVE-2021-21985
[CVE-2021-21985] - GitHub: https://github.com/brandonshiyay/My-Security-Learning-Resources
[CVE-2021-21985] - GitHub: https://github.com/fardeen-ahmed/Bug-bounty-Writeups
[CVE-2021-21985] - GitHub: https://github.com/haiclover/CVE-2021-21985
[CVE-2021-21985] - GitHub: https://github.com/joydo/CVE-Writeups
[CVE-2021-21985] - GitHub: https://github.com/lovechinacoco/https-github.com-mai-lang-chai-Middleware-Vulnerability-detection
[CVE-2021-21985] - GitHub: https://github.com/n1sh1th/CVE-POC
[CVE-2021-21985] - GitHub: https://github.com/r0eXpeR/supplier
[CVE-2021-21985] - GitHub: https://github.com/testanull/Project_CVE-2021-21985_PoC
[CVE-2021-21985] - GitHub: https://github.com/bigbroke/CVE-2021-21985
[CVE-2021-21985: Multiple vulnerabilities in the vSphere Client (HTML5) were privately reported to ...] - GitHub: https://github.com/daedalus/CVE-2021-21985
[CVE-2021-21985: CVE-2021-21985 vmware 6.7-9.8 RCE] - GitHub: https://github.com/mauricelambert/CVE-2021-21985
[CVE-2021-21985: This script check the CVE-2021-21985 vulnerability and patch on vCenter Server.] - GitHub: https://github.com/sknux/CVE-2021-21985_PoC
[CVE-2021-21985: VMWARE VCENTER SERVER VIRTUAL SAN HEALTH CHECK PLUG-IN RCE (CVE-2021-21985)] - GitHub: https://github.com/onSec-fr/CVE-2021-21985-Checker
[CVE-2021-21985: CVE-2021-21985 Checker (credits to alt3kx).] - GitHub: https://github.com/r0ckysec/CVE-2021-21985
[CVE-2021-21985: CVE-2021-21985 VMware vCenter Server远程代码执行漏洞 EXP (更新可回显EXP)] - GitHub: https://github.com/xnianq/cve-2021-21985_exp
[CVE-2021-21985: Cve-2021-21985 exploit]
Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.
WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.
Risk Information
CVSS Score Source [?]: CVE-2021-21985
CVSS V2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C/E:H/RL:OF/RC:C
CVSS Base Score: | 10.0 (High) |
Impact Subscore: | 10.0 |
Exploitability Subscore: | 10.0 |
CVSS Temporal Score: | 8.7 (High) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 8.7 (High) |
CVSS Base Score: | 9.8 (Critical) |
Impact Subscore: | 5.9 |
Exploitability Subscore: | 3.9 |
CVSS Temporal Score: | 9.4 (Critical) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 9.4 (Critical) |
STIG Risk Rating: High
Go back to menu.
Plugin Source
The vmware_vcenter_cve-2021-21985.nbin Nessus plugin is distributed in a propriatory binary format and its source code is protected. This script is Copyright (C) 2021-2022 and is owned by Tenable, Inc. or an Affiliate thereof.
The latest version of this script can be found in these locations depending on your platform:
- Linux / Unix:
/opt/nessus/lib/nessus/plugins/vmware_vcenter_cve-2021-21985.nbin
- Windows:
C:\ProgramData\Tenable\Nessus\nessus\plugins\vmware_vcenter_cve-2021-21985.nbin
- Mac OS X:
/Library/Nessus/run/lib/nessus/plugins/vmware_vcenter_cve-2021-21985.nbin
Go back to menu.
How to Run
Here is how to run the VMware vCenter Server Virtual SAN Health Check plug-in RCE (CVE-2021-21985) (direct check) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):
- Click to start a New Scan.
- Select Advanced Scan.
- Navigate to the Plugins tab.
- On the top right corner click to Disable All plugins.
- On the left side table select Misc. plugin family.
- On the right side table select VMware vCenter Server Virtual SAN Health Check plug-in RCE (CVE-2021-21985) (direct check) plugin ID 150163.
- Specify the target on the Settings tab and click to Save the scan.
- Run the scan.
Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.
Basic usage:
/opt/nessus/bin/nasl vmware_vcenter_cve-2021-21985.nbin -t <IP/HOST>
Run the plugin with audit trail message on the console:
/opt/nessus/bin/nasl -a vmware_vcenter_cve-2021-21985.nbin -t <IP/HOST>
Run the plugin with trace script execution written to the console (useful for debugging):
/opt/nessus/bin/nasl -T - vmware_vcenter_cve-2021-21985.nbin -t <IP/HOST>
Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):
/opt/nessus/bin/nasl -K /tmp/state vmware_vcenter_cve-2021-21985.nbin -t <IP/HOST>
Go back to menu.
References
IAVA | Information Assurance Vulnerability Alert:
- 2021-A-0254
- https://www.tenable.com/plugins/nessus/150163
- https://github.com/alt3kx/CVE-2021-21985_PoC
- https://www.vmware.com/security/advisories/VMSA-2021-0010.html
- https://vulners.com/nessus/VMWARE_VCENTER_CVE-2021-21985.NBIN
- 149902 - VMware vCenter Server 6.5 / 6.7 / 7.0 Multiple Vulnerabilities (VMSA-2021-0010)
- 111760 - VMware vCenter Server 5.5.x / 6.0.x / 6.5.x / 6.7.x Speculative Execution Side Channel Vulnerability (Foreshadow) (VMSA-2018-0020)
- 112207 - VMware vCenter Server Appliance 6.0 / 6.5 / 6.7 Information Disclosure vulnerability (VMSA-2018-0021)
- 112208 - VMware vSphere Data Protection 6.x Information Disclosure Vulnerability (VMSA-2018-0021
- 112209 - VMware vRealize Automation 6.x / 7.x Information Disclosure Vulnerability (VMSA-2018-0021
- 118885 - ESXi 6.0 / 6.5 / 6.7 Multiple Vulnerabilities (VMSA-2018-0027) (Remote Check)
- 125218 - ESXi 6.0 / 6.5 / 6.7 Multiple Vulnerabilities (VMSA-2019-0008)(MDSUM/RIDL) (MFBDS/RIDL/ZombieLoad) (MLPDS/RIDL) (MSBDS/Fallout)(Remote Check)
- 129493 - ESXi 6.0 / 6.5 / 6.7 Multiple Vulnerabilities (VMSA-2019-0013)
- 129825 - VMware Harbor Privilege Escalation (VMSA-2019-0015) (CVE-2019-16097)
- 130004 - VMware Harbor 1.7.x < 1.7.6, 1.8.x < 1.8.3 (VMSA-2019-0015)
- 134877 - VMware ESXi 5.5 / 6.0 / 6.5 / 6.7 Information Disclosure (VMSA-2018-0012) (Spectre) (remote check)
- 135411 - VMware vCenter Server 6.7 Sensitive Information Disclosure Vulnerability (VMSA-2020-0006)
- 136746 - VMware Cloud Director 9.1.x < 9.1.0.4 / 9.5.x < 9.5.0.6 / 9.7.x < 9.7.0.5 / 10.0.x < 10.0.0.2 Code Injection (VMSA-2020-0010)
- 146825 - VMware vCenter Server RCE (direct check)
- 146826 - VMware vCenter Server 6.5 / 6.7 / 7.0 Multiple Vulnerabilities (VMSA-2021-0002)
- 146827 - ESXi 6.5 / 6.7 / 7.0 RCE (VMSA-2021-0002)
- 148255 - VMware vRealize Operations Manager 7.5.x / 8.x Multiple Vulnerabilities (VMSA-2021-0004)
- 149902 - VMware vCenter Server 6.5 / 6.7 / 7.0 Multiple Vulnerabilities (VMSA-2021-0010)
- 153544 - VMware vCenter Server < 6.7 Multiple Vulnerabilities (VMSA-2021-0020)
- 153545 - VMware vCenter Server < 7.0 U2c Multiple Vulnerabilities (VMSA-2021-0020)
- 153547 - VMware vCenter Server < 6.5 U3q Multiple Vulnerabilities (VMSA-2021-0020)
- 153889 - VMware vCenter Server Arbitrary File Upload (VMSA-2021-0020)
- 155790 - VMware vCenter Server 6.5 / 6.7 Multiple Vulnerabilities (VMSA-2021-0027)
- 156035 - VMware vCenter Log4Shell Direct Check (CVE-2021-44228) (VMSA-2021-0028)
- 156560 - VMware Horizon Log4Shell Direct Check (CVE-2021-44228) (VMSA-2021-0028)
- 156932 - VMware vRealize Operations Manager Log4Shell Direct Check (CVE-2021-44228) (VMSA-2021-0028)
- 159306 - VMware vCenter Server 6.5 / 6.7 / 7.0 Information Disclosure (VMSA-2022-0009)
- 66806 - VMware vCenter Multiple Vulnerabilities (VMSA-2012-0013)
- 70612 - VMware Security Updates for vCenter Server (VMSA-2013-0012)
- 70879 - ESXi 5.0 < Build 1311175 Multiple Vulnerabilities (remote check)
- 70880 - ESXi 5.0 < Build 515841 Multiple Vulnerabilities (remote check)
- 70881 - ESXi 5.0 < Build 608089 Multiple Vulnerabilities (remote check)
- 70885 - ESXi 5.0 < Build 912577 Multiple Vulnerabilities (remote check)
- 70886 - ESXi 5.1 < Build 1063671 Multiple Vulnerabilities (remote check)
- 70888 - ESXi 5.1 < Build 911593 Multiple Vulnerabilities (remote check)
Version
This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file vmware_vcenter_cve-2021-21985.nbin version 1.12. For more plugins, visit the Nessus Plugin Library.
Go back to menu.