Vagrant VMware Fusion Privilege Escalation (4.0.24)
Hashicorp's vagrant-vmware-fusion plugin for vagrant is vulnerable to privilege escalation due to a fundamental design flaw in the way the plugin is written combined with the need to elevate privileges for certain functions within Fusion. The encrypted ruby code that the plugin is comprised of must remain owned by the non-root user, creating a huge attack surface that can be exploited to manipulate the execution of the program and still get root on 4.0.24. The exploit can be patched out of the code, creating a symlink for a binary that VMWare moved in v10 and then the exploit works on Fusion 8.x and Fusion 10. This vulnerability is fixed in 4.0.25 by replacing the suid helper binary with a new go binary that contains all the required elevated operations and doesn't call back to the vulnerable ruby code.