CVE-2022-42717

A

n 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.

Configurations

Configuration 1 (hide)

AND
cpe:2.3:a:hashicorp:vagrant:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*

History

20 May 2025, 15:15

Type Values Removed Values Added
CWE CWE-284

21 Nov 2024, 07:25

Type Values Removed Values Added
References () https://discuss.hashicorp.com/t/hcsec-2022-23-vagrant-nfs-sudoers-configuration-allows-for-local-privilege-escalation/45423 - Vendor Advisory () https://discuss.hashicorp.com/t/hcsec-2022-23-vagrant-nfs-sudoers-configuration-allows-for-local-privilege-escalation/45423 - Vendor Advisory
References () https://github.com/hashicorp/vagrant/pull/12910 - Patch, Third Party Advisory () https://github.com/hashicorp/vagrant/pull/12910 - Patch, Third Party Advisory
References () https://www.vagrantup.com/docs/synced-folders/nfs - Product () https://www.vagrantup.com/docs/synced-folders/nfs - Product

Information

Published : 2022-10-11 23:15

Updated : 2025-05-20 15:15


NVD link : CVE-2022-42717

Mitre link : CVE-2022-42717

CVE.ORG link : CVE-2022-42717


JSON object : View

Products Affected
CWE
NVD-CWE-Other CWE-284

Improper Access Control