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.
Metrics
CVSS 3.1 7.8/10
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
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
Timeline
- Published
- Oct 11, 2022
- Last modified
- Jun 17, 2026
- NVD status
- Modified