CVEvulnerability
CVE-2022-42717
7.8 HIGH
Official page ↗
- Status
- Modified
- Published
- 2022-10-11
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-284
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.
Affected configurations
• hashicorp vagrant (< 2.3.1)
Related
Weakness · CWE (1)
- CWE-284 Improper Access Control weakness
References
- https://discuss.hashicorp.com/t/hcsec-2022-23-vagrant-nfs-sudoers-configuration-allows-for-local-privilege-escalation/45423 Vendor Advisory
- https://github.com/hashicorp/vagrant/pull/12910 Patch, Third Party Advisory
- https://www.vagrantup.com/docs/synced-folders/nfs Product
- https://discuss.hashicorp.com/t/hcsec-2022-23-vagrant-nfs-sudoers-configuration-allows-for-local-privilege-escalation/45423 Vendor Advisory
- https://github.com/hashicorp/vagrant/pull/12910 Patch, Third Party Advisory
- https://www.vagrantup.com/docs/synced-folders/nfs Product