VMware vCenter Server, VMware Cloud Foundation
VMware vCenter Server File Upload Vulnerability
The vCenter Server contains an arbitrary file upload vulnerability in the Analytics service. A malicious actor with network access to port 443 on vCenter Server may exploit this issue to execute code on vCenter Server by uploading a specially crafted file.
Timeline
Days relative to CVE publicationFirst public PoC 11 h before publication; added to CISA KEV 41 days after publication. First PoC: 1ZRR4H/CVE-2021-22005 (created 23 Sep 2021, found by us: backfilled).
PoC repositories
Found on GitHub.15 PoCs · 2 pending · 3 informational · 2 suspicious or fake
PoCs 15
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 1ZRR4H/CVE-2021-22005 | 23 Sep 2021 −11 h | 8 | PoC via PoC Index |
| 5gstudent/CVE-2021-22005- | 25 Sep 2021 +1.8 d | 13 | PoC |
| rwincey/CVE-2021-22005 | 28 Sep 2021 +5.4 d | 37 | PoC |
| TaroballzChen/CVE-2021-22005-metasploit | 2 Oct 2021 +8.8 d | 22 | PoC |
| TiagoSergio/CVE-2021-22005 | 24 Oct 2021 +31 d | 2 | PoC |
| tiagob0b/CVE-2021-22005 | 24 Oct 2021 +31 d | 2 | PoC |
| Jun-5heng/CVE-2021-22005 | 27 Oct 2021 +34 d | 21 | PoC |
| shmilylty/cve-2021-22005-exp | 18 Dec 2021 +86 d | 193 | PoC |
| timb-machine-mirrors/CVE-2021-22005 | 5 Jan 2022 +104 d | 0 | PoC |
| timb-machine-mirrors/testanull-CVE-2021-22005.py | 5 Jan 2022 +104 d | 0 | PoC |
| 24-2021/EXP-POC | 5 Jun 2022 +255 d | 26 | PoC via PoC Index |
| chaosec2021/EXP-POC | 5 Jun 2022 +255 d | 26 | PoC via PoC Index |
| mamba-2021/EXP-POC | 5 Jun 2022 +255 d | 26 | PoC via PoC Index |
| InventorMAO/cve-2021-22005 | 21 Jun 2022 +271 d | 0 | PoC |
| zidanfanshao/vcenter_tools | 11 Nov 2024 +3.1 y | 70 | PoC via PoC Index
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Pending 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Jeromeyoung/VMWare-CVE-Check | 24 Sep 2021 +14 h | 0 | Pending |
| r0ckysec/CVE-2021-22005 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| pisut4152/Sigma-Rule-for-CVE-2021-22005-scanning-activity | 23 Sep 2021 −7 h | 1 | Informational · detection
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| RedTeamExp/CVE-2021-22005_PoC | 27 Sep 2021 +3.7 d | 1 | Informational · write-up |
| Vulnmachines/VmWare-vCenter-vulnerability | 3 Dec 2021 +71 d | 8 | Informational · write-up |
Suspicious or fake 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| vikerup/Get-vSphereVersion | 1 Oct 2021 +8 d | 2 | Fake |
| viksafe/Get-vSphereVersion | 1 Oct 2021 +8 d | 2 | 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 Analytics (CEIP) Service File Upload (exploit/linux/http/vmware_vcenter_analytics_file_upload) | 6 Oct 2021 | 14 Nov 2026 |
| nuclei template | nuclei template: VMware vCenter Server - Arbitrary File Upload | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 15 PoC reposPOST /analytics/telemetry/ph/api/hyper/send
- Query
_c=_i=test- Key headers
Accept: */*- Body markers
testinapplication/json- Ports
- 8080
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4298.0 Safari/537.36vAPI/2.100.0 Java/1.8.0_261 (Linux; 4.19.160-6.ph3; amd64)- Seen in
- 7 repos: 1ZRR4H/CVE-2021-22005, 24-2021/EXP-POC, TaroballzChen/CVE-2021-22005-metasploit, TiagoSergio/CVE-2021-22005, chaosec2021/EXP-POC, mamba-2021/EXP-POC, tiagob0b/CVE-2021-22005
- Evidence
- 1ZRR4H/CVE-2021-22005/README.md:5 24-2021/EXP-POC/CVE-2021-22005poc/cve-2021-22005.py:32 TaroballzChen/CVE-2021-22005-metasploit/vmware_vcenter_server_file_upload_poc.py:175 TaroballzChen/CVE-2021-22005-metasploit/vmware_vcenter_server_file_upload_to_rce.py:195 TiagoSergio/CVE-2021-22005/vmware_vcenter_server_file_upload_poc.py:175 TiagoSergio/CVE-2021-22005/vmware_vcenter_server_file_upload_to_rce.py:195
POST /analytics/ceip/sdk/..;/..;/..;/analytics/ph/api/dataapp/agent
- Query
_c=_i=action=collect- Key headers
Cache-Control: max-age=0Upgrade-Insecure-Requests: 1X-Deployment-Secret: abc- Body markers
"manifestSpec""objectType":"a2""collectionTriggerDataNeeded""deploymentDataNeeded""resultNeeded""signalCollectionCompleted""localManifestPath":"a7""localPayloadPath":"a8""localObfuscationMapPath":"a9""contextData":"a3""manifestContent""objectId":"a2"cmd_param=inapplication/json- Ports
- 1080, 8080
- PoC User-Agent
Mozilla/5.0- Seen in
- 4 repos: InventorMAO/cve-2021-22005, Jun-5heng/CVE-2021-22005, rwincey/CVE-2021-22005, shmilylty/cve-2021-22005-exp
- Evidence
- InventorMAO/cve-2021-22005/cve-2021-22005.py:52 InventorMAO/cve-2021-22005/cve-2021-22005.py:138 Jun-5heng/CVE-2021-22005/cve-2021-22005.py:35 rwincey/CVE-2021-22005/CVE-2021-22005.py:39 rwincey/CVE-2021-22005/CVE-2021-22005.py:70 rwincey/CVE-2021-22005/CVE-2021-22005.py:169
POST /idm/..;/{var}
- Key headers
Cache-Control: max-age=0Upgrade-Insecure-Requests: 1X-Deployment-Secret: abc- Body markers
"contextData":"a3""manifestContent""objectId":"a2"cmd_param=inapplication/json- PoC User-Agent
Mozilla/5.0- Seen in
- 4 repos: Jun-5heng/CVE-2021-22005, TaroballzChen/CVE-2021-22005-metasploit, TiagoSergio/CVE-2021-22005, tiagob0b/CVE-2021-22005
- Evidence
- Jun-5heng/CVE-2021-22005/cve-2021-22005.py:70 TaroballzChen/CVE-2021-22005-metasploit/vmware_vcenter_server_file_upload_to_rce.py:68 TiagoSergio/CVE-2021-22005/vmware_vcenter_server_file_upload_to_rce.py:68 tiagob0b/CVE-2021-22005/vmware_vcenter_server_file_upload_to_rce.py:68
DELETE /actuator/gateway/routes/code
DELETE /actuator/gateway/routes/codee
GET /%24%7B%28%23a%3D%40org.apache.commons.io.IOUtils%40toString%28%40java.lang.Runtime%40getRuntime%28%29.exec%28%22{var}%22%29.getInputStream%28%29%2C%22utf-8%22%29%29.%28%40com.opensymphony.webwork.ServletActionContext%40getResponse%28%29.setHeader%28%22X-Cmd-Response%22%2C%23a%29%29%7D/
GET /actuator/gateway/routes/code
GET /actuator/gateway/routes/codee
GET /catalog-portal/ui/oauth/verify
- Query
error=deviceUdid=- Ports
- 8080
- Seen in
- 3 repos: 24-2021/EXP-POC, chaosec2021/EXP-POC, mamba-2021/EXP-POC
- Evidence
- 24-2021/EXP-POC/CVE-2022-22954-VMware-RCE/CVE-2022-22954_VMrce_POC.py:23 chaosec2021/EXP-POC/CVE-2022-22954-VMware-RCE/CVE-2022-22954_VMrce_POC.py:23 mamba-2021/EXP-POC/CVE-2022-22954-VMware-RCE/CVE-2022-22954_VMrce_POC.py:23
GET /idm/..;/{var}
- Seen in
- 3 repos: TaroballzChen/CVE-2021-22005-metasploit, TiagoSergio/CVE-2021-22005, tiagob0b/CVE-2021-22005
- Evidence
- TaroballzChen/CVE-2021-22005-metasploit/vmware_vcenter_server_file_upload_poc.py:138 TiagoSergio/CVE-2021-22005/vmware_vcenter_server_file_upload_poc.py:138 tiagob0b/CVE-2021-22005/vmware_vcenter_server_file_upload_poc.py:138
GET /login.action
POST /actuator/gateway/refresh
- Ports
- 8080
- Seen in
- 3 repos: 24-2021/EXP-POC, chaosec2021/EXP-POC, mamba-2021/EXP-POC
- Evidence
- 24-2021/EXP-POC/CVE-2022-22947-POC/CVE-2022-22947_EXP.py:41 24-2021/EXP-POC/CVE-2022-22947-POC/CVE-2022-22947_POC.py:51 chaosec2021/EXP-POC/CVE-2022-22947-POC/CVE-2022-22947_EXP.py:41 chaosec2021/EXP-POC/CVE-2022-22947-POC/CVE-2022-22947_POC.py:51 mamba-2021/EXP-POC/CVE-2022-22947-POC/CVE-2022-22947_EXP.py:41 mamba-2021/EXP-POC/CVE-2022-22947-POC/CVE-2022-22947_POC.py:51
POST /actuator/gateway/routes/code
- Key headers
Accept: */*Accept-Language: en- Content-Type
application/json- Ports
- 8080
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36- Seen in
- 3 repos: 24-2021/EXP-POC, chaosec2021/EXP-POC, mamba-2021/EXP-POC
- Evidence
- 24-2021/EXP-POC/CVE-2022-22947-POC/CVE-2022-22947_POC.py:110 chaosec2021/EXP-POC/CVE-2022-22947-POC/CVE-2022-22947_POC.py:110 mamba-2021/EXP-POC/CVE-2022-22947-POC/CVE-2022-22947_POC.py:110
POST /actuator/gateway/routes/codee
- Key headers
Accept: */*Accept-Language: en- Content-Type
application/json- Ports
- 8080
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36- Seen in
- 3 repos: 24-2021/EXP-POC, chaosec2021/EXP-POC, mamba-2021/EXP-POC
- Evidence
- 24-2021/EXP-POC/CVE-2022-22947-POC/CVE-2022-22947_EXP.py:124 chaosec2021/EXP-POC/CVE-2022-22947-POC/CVE-2022-22947_EXP.py:124 mamba-2021/EXP-POC/CVE-2022-22947-POC/CVE-2022-22947_EXP.py:124
POST /functionRouter
- Key headers
Accept: */*Accept-Language: enSpring.cloud.function.routing-Expression: T(java.lang.Runtime).getRuntime().exec("{var}")- Body markers
test=inapplication/x-www-form-urlencoded- Ports
- 8080
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36- Seen in
- 3 repos: 24-2021/EXP-POC, chaosec2021/EXP-POC, mamba-2021/EXP-POC
- Evidence
- 24-2021/EXP-POC/Spring-cloud-function-SpEL-RCE/Spel_RCE_Bash_EXP.py:49 24-2021/EXP-POC/Spring-cloud-function-SpEL-RCE/Spel_RCE_POC.py:44 chaosec2021/EXP-POC/Spring-cloud-function-SpEL-RCE/Spel_RCE_Bash_EXP.py:49 chaosec2021/EXP-POC/Spring-cloud-function-SpEL-RCE/Spel_RCE_POC.py:44 mamba-2021/EXP-POC/Spring-cloud-function-SpEL-RCE/Spel_RCE_Bash_EXP.py:49 mamba-2021/EXP-POC/Spring-cloud-function-SpEL-RCE/Spel_RCE_POC.py:44
POST /general/index/UploadFile.php
- Query
m=uploadPictureuploadType=eoffice_logouserId=- Body markers
name="Filedata"inmultipart/form-data- Ports
- 8080
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4298.0 Safari/537.36- Seen in
- 3 repos: 24-2021/EXP-POC, chaosec2021/EXP-POC, mamba-2021/EXP-POC
- Evidence
- 24-2021/EXP-POC/CNVD-2021-49104_upload/泛微_E-Office_upload.py:20 24-2021/EXP-POC/CNVD-2021-49104_upload/泛微_E-Office_upload.py:47 chaosec2021/EXP-POC/CNVD-2021-49104_upload/泛微_E-Office_upload.py:20 chaosec2021/EXP-POC/CNVD-2021-49104_upload/泛微_E-Office_upload.py:47 mamba-2021/EXP-POC/CNVD-2021-49104_upload/泛微_E-Office_upload.py:20 mamba-2021/EXP-POC/CNVD-2021-49104_upload/泛微_E-Office_upload.py:47
POST /servlet/~ic/bsh.servlet.BshServlet
- Body markers
bsh.script=inapplication/x-www-form-urlencoded- Ports
- 8080
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0- Seen in
- 3 repos: 24-2021/EXP-POC, chaosec2021/EXP-POC, mamba-2021/EXP-POC
- Evidence
- 24-2021/EXP-POC/CNVD-2021-30167-NC-BeanShell-RCE/用友beanshell-rce.py:25 24-2021/EXP-POC/CNVD-2021-30167-NC-BeanShell-RCE/用友beanshell-rce.py:44 24-2021/EXP-POC/CNVD-2021-30167-NC-BeanShell-RCE/用友beanshell-rce.py:68 chaosec2021/EXP-POC/CNVD-2021-30167-NC-BeanShell-RCE/用友beanshell-rce.py:25 chaosec2021/EXP-POC/CNVD-2021-30167-NC-BeanShell-RCE/用友beanshell-rce.py:44 chaosec2021/EXP-POC/CNVD-2021-30167-NC-BeanShell-RCE/用友beanshell-rce.py:68
GET /analytics/ceip/sdk/..;/..;/..;/analytics/ph/api/dataapp/agent
- Query
_c=_i=- Key headers
Cache-Control: max-age=0Upgrade-Insecure-Requests: 1X-Deployment-Secret: abc- Content-Type
application/json- PoC User-Agent
Mozilla/5.0- Seen in
- 1 repo: InventorMAO/cve-2021-22005
- Evidence
- InventorMAO/cve-2021-22005/cve-2021-22005.py:141
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/analytics/telemetry/ph/api/hyper/send\?(?:.*&)?_c=.*_i=test
(?i)^/analytics/ceip/sdk/\.\.;/\.\.;/\.\.;/analytics/ph/api/dataapp/agent\?(?:.*&)?_c=.*_i=.*action=collect
(?i)^/idm/\.\.;/[^/?#]*(?:[?#].*)?$
(?i)^/actuator/gateway/routes/code(?:[?#].*)?$
(?i)^/actuator/gateway/routes/codee(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2021-22005 VMware VMware vCenter Server, VMware Cloud Foundation exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/analytics/telemetry/ph/api/hyper/send"; http.uri; content:"_c="; http.uri; content:"_i=test"; http.header; content:"Accept: */*"; nocase; http.request_body; content:"test"; reference:url,poc.griffinguard.io/cve/CVE-2021-22005; classtype:web-application-attack; sid:9149192; rev:1;)
alert http any any -> $HOME_NET [1080,8080] (msg:"GG PoC-Monitor CVE-2021-22005 VMware VMware vCenter Server, VMware Cloud Foundation exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/analytics/ceip/sdk/..|3b|/..|3b|/..|3b|/analytics/ph/api/dataapp/agent"; http.uri; content:"_c="; http.uri; content:"_i="; http.uri; content:"action=collect"; http.header; content:"Cache-Control: max-age=0"; nocase; http.header; content:"Upgrade-Insecure-Requests: 1"; nocase; http.header; content:"X-Deployment-Secret: abc"; nocase; http.request_body; content:"|22|manifestSpec|22|"; http.request_body; content:"|22|objectType|22|:|22|a2|22|"; http.request_body; content:"|22|collectionTriggerDataNeeded|22|"; http.request_body; content:"|22|deploymentDataNeeded|22|"; http.request_body; content:"|22|resultNeeded|22|"; http.request_body; content:"|22|signalCollectionCompleted|22|"; http.request_body; content:"|22|localManifestPath|22|:|22|a7|22|"; http.request_body; content:"|22|localPayloadPath|22|:|22|a8|22|"; http.request_body; content:"|22|localObfuscationMapPath|22|:|22|a9|22|"; http.request_body; content:"|22|contextData|22|:|22|a3|22|"; http.request_body; content:"|22|manifestContent|22|"; http.request_body; content:"|22|objectId|22|:|22|a2|22|"; http.request_body; content:"cmd_param="; reference:url,poc.griffinguard.io/cve/CVE-2021-22005; classtype:web-application-attack; sid:9217032; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-22005 VMware VMware vCenter Server, VMware Cloud Foundation exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/idm/..|3b|/"; http.header; content:"Cache-Control: max-age=0"; nocase; http.header; content:"Upgrade-Insecure-Requests: 1"; nocase; http.header; content:"X-Deployment-Secret: abc"; nocase; http.request_body; content:"|22|contextData|22|:|22|a3|22|"; http.request_body; content:"|22|manifestContent|22|"; http.request_body; content:"|22|objectId|22|:|22|a2|22|"; http.request_body; content:"cmd_param="; reference:url,poc.griffinguard.io/cve/CVE-2021-22005; classtype:web-application-attack; sid:9788278; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2021-22005 VMware VMware vCenter Server, VMware Cloud Foundation exploit attempt"; flow:established,to_server; http.method; content:"DELETE"; http.uri; content:"/actuator/gateway/routes/code"; reference:url,poc.griffinguard.io/cve/CVE-2021-22005; classtype:web-application-attack; sid:9207824; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2021-22005 VMware VMware vCenter Server, VMware Cloud Foundation exploit attempt"; flow:established,to_server; http.method; content:"DELETE"; http.uri; content:"/actuator/gateway/routes/codee"; reference:url,poc.griffinguard.io/cve/CVE-2021-22005; classtype:web-application-attack; sid:9219439; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: VMware VMware vCenter Server, VMware Cloud Foundation exploit attempt (CVE-2021-22005)
id: gg-pocmon-cve-2021-22005-9149192
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-22005. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-22005
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/analytics/telemetry/ph/api/hyper/send'
cs-uri-query|contains|all:
- '_c='
- '_i=test'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.22005
title: VMware VMware vCenter Server, VMware Cloud Foundation exploit attempt (CVE-2021-22005)
id: gg-pocmon-cve-2021-22005-9217032
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-22005. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-22005
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/analytics/ceip/sdk/..;/..;/..;/analytics/ph/api/dataapp/agent'
cs-uri-query|contains|all:
- '_c='
- '_i='
- 'action=collect'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.22005
title: VMware VMware vCenter Server, VMware Cloud Foundation exploit attempt (CVE-2021-22005)
id: gg-pocmon-cve-2021-22005-9788278
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-22005. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-22005
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/idm/..;/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.22005
title: VMware VMware vCenter Server, VMware Cloud Foundation exploit attempt (CVE-2021-22005)
id: gg-pocmon-cve-2021-22005-9207824
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-22005. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-22005
logsource:
category: webserver
detection:
selection:
cs-method: DELETE
cs-uri-stem|contains|all:
- '/actuator/gateway/routes/code'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.22005
title: VMware VMware vCenter Server, VMware Cloud Foundation exploit attempt (CVE-2021-22005)
id: gg-pocmon-cve-2021-22005-9219439
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-22005. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-22005
logsource:
category: webserver
detection:
selection:
cs-method: DELETE
cs-uri-stem|contains|all:
- '/actuator/gateway/routes/codee'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.22005