At the beginning of this month, VMware released an advisory (VMSA-2022-0001) about a heap-overflow vulnerability in the CD-ROM device emulator (CVE-2021-22045).
This exploit will allow an attacker to execute code in the hypervisor from a virtual machine that has a connected CD image. This means the attacker could then take over all of the virtual machines running on that same ESXi host.
This vulnerability appears to affect all versions of ESXi since VMware released patches for supported versions 6.5 and 6.7.
The 7.0 patch is still pending, but all current versions of 7.x are impacted.
This is a large exploit, and it’s a common mistake leaving an ISO attached to a virtual machine, and only later realizing that the ISO was still attached when trying to do a vmotion of the virtual machine.
Until you can upgrade/patch your ESXi environment, you should disable/disconnect all CD-ROM/DVD devices on all running virtual machines.
Get-VM | Get-CDDrive | Where {$_.extensiondata.connectable.connected -eq $true} | Select Parent
Get-VM | Get-CDDrive | Where {$_.extensiondata.connectable.connected -eq $true} | Set-CDDrive -NoMedia -confirm:$false