VulnerabilityModified
CVE-2022-42717
The recommended sudoers configuration for Vagrant on Linux is insecure.
HIGH 7.8EPSS 0.23%
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (0.23%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
An issue was discovered in Hashicorp Packer before 2.3.1. The recommended sudoers configuration for Vagrant on Linux is insecure. If the host has been configured according to this documentation, non-privileged users on the host can leverage a wildcard in the sudoers configuration to execute arbitrary commands as root.
- CVSS 3.1
- 7.8 HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 0.23% probability · 14th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-284
- Affected
- hashicorp/vagrant
- Source
- cve@mitre.org
References
- https://discuss.hashicorp.com/t/hcsec-2022-23-vagrant-nfs-sudoers-configuration-allows-for-local-privilege-escalation/45423Vendor Advisory
- https://github.com/hashicorp/vagrant/pull/12910Patch, Third Party Advisory
- https://www.vagrantup.com/docs/synced-folders/nfsProduct
- https://discuss.hashicorp.com/t/hcsec-2022-23-vagrant-nfs-sudoers-configuration-allows-for-local-privilege-escalation/45423Vendor Advisory
- https://github.com/hashicorp/vagrant/pull/12910Patch, Third Party Advisory
- https://www.vagrantup.com/docs/synced-folders/nfsProduct
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.