VMware vCenter Server and VMware Cloud Foundation
VMware vCenter Server Improper Input Validation Vulnerability
The vSphere Client (HTML5) contains a remote code execution vulnerability due to lack of input validation in the Virtual SAN Health Check plug-in which is enabled by default in vCenter Server. 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.
Timeline
Days relative to CVE publicationFirst public PoC 3 days after publication; added to CISA KEV 161 days after publication. First PoC: alt3kx/CVE-2021-21985_PoC (created 29 May 2021, found by us: backfilled).
PoC repositories
Found on GitHub.7 PoCs · 3 pending · 1 informational · 2 suspicious or fake
PoCs 7
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| alt3kx/CVE-2021-21985_PoC | 29 May 2021 +3 d | 213 | PoC |
| onSec-fr/CVE-2021-21985-Checker | 1 Jun 2021 +5.8 d | 2 | Scanner |
| mauricelambert/CVE-2021-21985 | 1 Jun 2021 +6.2 d | 0 | PoC |
| xnianq/cve-2021-21985_exp | 3 Jun 2021 +7.9 d | 115 | PoC |
| daedalus/CVE-2021-21985 | 4 Jun 2021 +8.5 d | 2 | PoC |
| sknux/CVE-2021-21985_PoC | 9 Nov 2021 +167 d | 3 | PoC via PoC Index |
| zidanfanshao/vcenter_tools | 11 Nov 2024 +3.5 y | 70 | PoC via PoC Index
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Pending 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| haiclover/CVE-2021-21985 | 8 Jul 2021 +43 d | 1 | Pending · repository exceeds size limit via PoC Index |
| haidv35/CVE-2021-21985 | 8 Jul 2021 +43 d | 1 | Pending · repository exceeds size limit via PoC Index |
| r0ckysec/CVE-2021-21985 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| bigbroke/CVE-2021-21985 | 27 May 2021 +12 h | 1 | Informational · detection |
Suspicious or fake 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| testanull/Project_CVE-2021-21985_PoC | 5 Jun 2021 +9.9 d | 28 | Fake |
| aristosMiliaressis/CVE-2021-21985 | 11 Jul 2021 +46 d | 0 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit exploit: VMware vCenter Server Virtual SAN Health Check Plugin RCE (exploit/linux/http/vmware_vcenter_vsan_health_rce) | 12 Jul 2021 | 14 Nov 2026 |
| nuclei template | nuclei template: VMware vSphere Client (HTML5) - Remote Code Execution | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 9 PoC reposPOST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/invoke
- Key headers
$connection: close$content-Type: application/json$host: {var}$user-Agent: alex666- Body markers
{var}\x0d\x0a=inapplication/x-www-form-urlencoded- Seen in
- 1 repo: alt3kx/CVE-2021-21985_PoC
- Evidence
- alt3kx/CVE-2021-21985_PoC/README.md:105
POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/prepare
- Key headers
$connection: close$content-Type: application/json$host: {var}$user-Agent: alex666- Body markers
{var}=inapplication/x-www-form-urlencoded- Seen in
- 1 repo: alt3kx/CVE-2021-21985_PoC
- Evidence
- alt3kx/CVE-2021-21985_PoC/README.md:97
POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setArguments
- Key headers
$connection: close$content-Type: application/json$host: {var}$user-Agent: alex666- Body markers
{var}=inapplication/x-www-form-urlencoded- Seen in
- 1 repo: alt3kx/CVE-2021-21985_PoC
- Evidence
- alt3kx/CVE-2021-21985_PoC/README.md:89
POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setStaticMethod
- Key headers
$connection: close$content-Type: application/json$host: {var}$user-Agent: alex666- Body markers
{var}\x0d\x0a=inapplication/x-www-form-urlencoded- Seen in
- 1 repo: alt3kx/CVE-2021-21985_PoC
- Evidence
- alt3kx/CVE-2021-21985_PoC/README.md:74
POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setTargetMethod
- Key headers
$connection: close$content-Type: application/json$host: {var}$user-Agent: alex666- Body markers
$\x0d\x0a{\"methodInput\":[\"doLookup\"]}\x0d\x0a=inapplication/x-www-form-urlencoded- Seen in
- 1 repo: alt3kx/CVE-2021-21985_PoC
- Evidence
- alt3kx/CVE-2021-21985_PoC/README.md:82
POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setTargetObject
- Key headers
$connection: close$content-Type: application/json$host: {var}$user-Agent: alex666- Body markers
{var}=inapplication/x-www-form-urlencoded- Seen in
- 1 repo: alt3kx/CVE-2021-21985_PoC
- Evidence
- alt3kx/CVE-2021-21985_PoC/README.md:66
POST /ui/h5-vsan/rest/proxy/service/&vsanQueryUtil_setDataService{var}
- Content-Type
application/json- PoC User-Agent
pentest- Seen in
- 1 repo: xnianq/cve-2021-21985_exp
- Evidence
- xnianq/cve-2021-21985_exp/cve-2021-21985.py:10
POST /ui/h5-vsan/rest/proxy/service/com.vmware.vsan.client.services.capability.VsanCapabilityProvider/$2
- Key headers
$connection: close$content-Type: application/json$host: $1$user-Agent: attacker- Body markers
{var}]}\x0d\x0a=inapplication/x-www-form-urlencoded- Seen in
- 1 repo: sknux/CVE-2021-21985_PoC
- Evidence
- sknux/CVE-2021-21985_PoC/cve-2021-21985_PoC:9
POST /ui/h5-vsan/rest/proxy/service/com.vmware.vsan.client.services.capability.VsanCapabilityProvider/getClusterCapabilityData
- Key headers
$connection: close$content-Type: application/json$host: {var}$user-Agent: alex666- Body markers
{var}]}\x0d\x0a=inapplication/x-www-form-urlencoded- Seen in
- 1 repo: alt3kx/CVE-2021-21985_PoC
- Evidence
- alt3kx/CVE-2021-21985_PoC/README.md:47
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/invoke(?:[?#].*)?$
(?i)^/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/prepare(?:[?#].*)?$
(?i)^/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setArguments(?:[?#].*)?$
(?i)^/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setStaticMethod(?:[?#].*)?$
(?i)^/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setTargetMethod(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-21985 VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/invoke"; http.header; content:"$connection: close"; nocase; http.header; content:"$content-Type: application/json"; nocase; http.header_names; content:"$host"; nocase; http.header; content:"$user-Agent: alex666"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2021-21985; classtype:web-application-attack; sid:9212396; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-21985 VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/prepare"; http.header; content:"$connection: close"; nocase; http.header; content:"$content-Type: application/json"; nocase; http.header_names; content:"$host"; nocase; http.header; content:"$user-Agent: alex666"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2021-21985; classtype:web-application-attack; sid:9262999; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-21985 VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setArguments"; http.header; content:"$connection: close"; nocase; http.header; content:"$content-Type: application/json"; nocase; http.header_names; content:"$host"; nocase; http.header; content:"$user-Agent: alex666"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2021-21985; classtype:web-application-attack; sid:9429376; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-21985 VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setStaticMethod"; http.header; content:"$connection: close"; nocase; http.header; content:"$content-Type: application/json"; nocase; http.header_names; content:"$host"; nocase; http.header; content:"$user-Agent: alex666"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2021-21985; classtype:web-application-attack; sid:9772151; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-21985 VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setTargetMethod"; http.header; content:"$connection: close"; nocase; http.header; content:"$content-Type: application/json"; nocase; http.header_names; content:"$host"; nocase; http.header; content:"$user-Agent: alex666"; nocase; http.request_body; content:"$|5c|x0d|5c|x0a{|5c||22|methodInput|5c||22|:[|5c||22|doLookup|5c||22|]}|5c|x0d|5c|x0a="; reference:url,poc.griffinguard.io/cve/CVE-2021-21985; classtype:web-application-attack; sid:9807096; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt (CVE-2021-21985)
id: gg-pocmon-cve-2021-21985-9212396
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-21985. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-21985
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/invoke'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.21985
title: VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt (CVE-2021-21985)
id: gg-pocmon-cve-2021-21985-9262999
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-21985. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-21985
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/prepare'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.21985
title: VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt (CVE-2021-21985)
id: gg-pocmon-cve-2021-21985-9429376
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-21985. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-21985
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setArguments'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.21985
title: VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt (CVE-2021-21985)
id: gg-pocmon-cve-2021-21985-9772151
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-21985. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-21985
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setStaticMethod'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.21985
title: VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt (CVE-2021-21985)
id: gg-pocmon-cve-2021-21985-9807096
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-21985. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-21985
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setTargetMethod'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.21985