Rapid7 Vulnerability & Exploit Database

VMware vCenter Server Unauthenticated JNDI Injection RCE (via Log4Shell)

Back to Search

VMware vCenter Server Unauthenticated JNDI Injection RCE (via Log4Shell)



VMware vCenter Server is affected by the Log4Shell vulnerability whereby a JNDI string can sent to the server that will cause it to connect to the attacker and deserialize a malicious Java object. This results in OS command execution in the context of the root user in the case of the Linux virtual appliance and SYSTEM on Windows. This module will start an LDAP server that the target will need to connect to. This exploit uses the logon page vector.


  • Spencer McIntyre
  • RageLtMan <rageltman@sempervictus>
  • jbaines-r7
  • w3bd3vil


Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/multi/http/vmware_vcenter_log4shell
msf exploit(vmware_vcenter_log4shell) > show targets
msf exploit(vmware_vcenter_log4shell) > set TARGET < target-id >
msf exploit(vmware_vcenter_log4shell) > show options
    ...show and set options...
msf exploit(vmware_vcenter_log4shell) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security