Basic script to workaround VMware vCenter log4j vulnerability CVE-2021-44228, as per the VMware KB article.
Apply workarounds and verify
cve-workaround
Run verification only
cve-workaround -v
- SSH to vCenter
- Run
shell
- Paste entire contents of script
- Type
cve
, hit tab, enter
Detects version and applies the relevant workarounds. Skips and reports per workaround step, if it thinks that workaround has been applied - re-execute safe.
Happy to hear any bugs / issues.