PoC Monitor
← All CVEs
CVE-2021-22005published 23 Sep 2021 11:37 UTCData: JSON · API

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.

First public PoC 11 h beforebefore publication · 23 Sep 2021
Public PoCs1715 on GitHub · 2 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CISA ADP · CWE-22
CISA KEV 3 Nov 202141 days after publication · ransomware use known

Timeline

Days relative to CVE publication
t=0+7+14+21+28+35+42First public PoC23 Sep 2021 · t−11hCVE published23 Sep 2021 · t = 0Added to CISA KEV3 Nov 2021 · t+41d

First 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
RepositoryCreatedStarsAssessment
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
  • owner account created less than 7 days before the repo

Below the suspicion threshold (50); does not change the assessment.

Pending 2
RepositoryCreatedStarsAssessment
Jeromeyoung/VMWare-CVE-Check 24 Sep 2021 +14 h 0 Pending
r0ckysec/CVE-2021-22005 unknown 0 Pending · repository unavailable (HTTP 404)
Informational 3
RepositoryCreatedStarsAssessment
pisut4152/Sigma-Rule-for-CVE-2021-22005-scanning-activity 23 Sep 2021 −7 h 1 Informational · detection
Flags · score 15
  • no network code found (normal for a local exploit)

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

PoC characteristics

What to hunt for in your logs · from 15 PoC repos

POST /analytics/ceip/sdk/..;/..;/..;/analytics/ph/api/dataapp/agent

Query
_c= _i= action=collect
Key headers
Cache-Control: max-age=0 Upgrade-Insecure-Requests: 1 X-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= in application/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=0 Upgrade-Insecure-Requests: 1 X-Deployment-Secret: abc
Body markers
"contextData":"a3" "manifestContent" "objectId":"a2" cmd_param= in application/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

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/

Ports
8080
Seen in
3 repos: 24-2021/EXP-POC, chaosec2021/EXP-POC, mamba-2021/EXP-POC
Evidence
24-2021/EXP-POC/CVE-2022-26134/CVE-2022-26134-POC.py:48 chaosec2021/EXP-POC/CVE-2022-26134/CVE-2022-26134-POC.py:48 mamba-2021/EXP-POC/CVE-2022-26134/CVE-2022-26134-POC.py:48

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: en Spring.cloud.function.routing-Expression: T(java.lang.Runtime).getRuntime().exec("{var}")
Body markers
test= in application/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=uploadPicture uploadType=eoffice_logo userId=
Body markers
name="Filedata" in multipart/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

GET /analytics/ceip/sdk/..;/..;/..;/analytics/ph/api/dataapp/agent

Query
_c= _i=
Key headers
Cache-Control: max-age=0 Upgrade-Insecure-Requests: 1 X-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.

POST /analytics/telemetry/ph/api/hyper/send
(?i)^/analytics/telemetry/ph/api/hyper/send\?(?:.*&)?_c=.*_i=test
POST /analytics/ceip/sdk/..;/..;/..;/analytics/ph/api/dataapp/agent
(?i)^/analytics/ceip/sdk/\.\.;/\.\.;/\.\.;/analytics/ph/api/dataapp/agent\?(?:.*&)?_c=.*_i=.*action=collect
POST /idm/..;/{var}
(?i)^/idm/\.\.;/[^/?#]*(?:[?#].*)?$
DELETE /actuator/gateway/routes/code
(?i)^/actuator/gateway/routes/code(?:[?#].*)?$
DELETE /actuator/gateway/routes/codee
(?i)^/actuator/gateway/routes/codee(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /analytics/telemetry/ph/api/hyper/send
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;)
POST /analytics/ceip/sdk/..;/..;/..;/analytics/ph/api/dataapp/agent
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;)
POST /idm/..;/{var}
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;)
DELETE /actuator/gateway/routes/code
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;)
DELETE /actuator/gateway/routes/codee
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.

POST /analytics/telemetry/ph/api/hyper/send
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
POST /analytics/ceip/sdk/..;/..;/..;/analytics/ph/api/dataapp/agent
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
POST /idm/..;/{var}
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
DELETE /actuator/gateway/routes/code
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
DELETE /actuator/gateway/routes/codee
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