CVE-2017-7642 in Hashicorp Vagrant Vmware Fusion
The sudo helper in the HashiCorp Vagrant VMware Fusion plugin (aka vagrant-vmware-fusion) before 4.0.21 allows local users to gain root privileges by leveraging failure to verify the path to the encoded ruby script or scrub the PATH variable.
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Hashicorp | Vagrant Vmware Fusion | ≤ 4.0.20 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
The sudo helper in the HashiCorp Vagrant VMware Fusion plugin (aka vagrant-vmware-fusion) before 4.0.21 allows local users to gain root privileges by leveraging failure to verify the path to the encoded ruby script or scrub the PATH variable.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2017-7642 |
|---|---|
| BreachSpider ID | BS-2017-GLOBAL-159463-H |
| CVSS vector | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2017-08-02 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-426: CWE-426
Related attack patterns (CAPEC)
CAPEC-38 Leveraging/Manipulating Configuration File Search Paths via CWE-426
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
The sudo helper in the HashiCorp Vagrant VMware Fusion plugin before version 4.0.21 is vulnerable to a local privilege escalation attack, allowing local users to gain root privileges.
Local users can exploit this vulnerability by leveraging the failure of the sudo helper to verify the path to the encoded ruby script or scrub the PATH variable, thus executing arbitrary code with elevated privileges.
Questions
What is CVE-2017-7642?
The sudo helper in the HashiCorp Vagrant VMware Fusion plugin before version 4.0.21 is vulnerable to a local privilege escalation attack, allowing local users to gain root privileges.
What is the CVSS score for CVE-2017-7642?
CVE-2017-7642 has CVSS 7.8 (High). Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.2%.
Is CVE-2017-7642 actively exploited?
Public exploit available for CVE-2017-7642. Exploitation risk elevated.
How do I remediate CVE-2017-7642?
Priority: HIGH.
What systems are affected by CVE-2017-7642?
CVE-2017-7642 affects Hashicorp Vagrant Vmware Fusion.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Hashicorp","product":"Vagrant Vmware Fusion","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.