Vulnerability Details : CVE-2022-42717
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.
Products affected by CVE-2022-42717
- cpe:2.3:a:hashicorp:vagrant:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-42717
0.06%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 17 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-42717
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.8
|
HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
1.8
|
5.9
|
NIST |
CWE ids for CVE-2022-42717
-
The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.Assigned by: nvd@nist.gov (Primary)
References for CVE-2022-42717
-
https://discuss.hashicorp.com/t/hcsec-2022-23-vagrant-nfs-sudoers-configuration-allows-for-local-privilege-escalation/45423
HCSEC-2022-23 - Vagrant NFS sudoers Configuration Allows for Local Privilege Escalation - Security - HashiCorp DiscussVendor Advisory
-
https://github.com/hashicorp/vagrant/pull/12910
Update NFS exports usage by chrisroberts · Pull Request #12910 · hashicorp/vagrant · GitHubPatch;Third Party Advisory
-
https://www.vagrantup.com/docs/synced-folders/nfs
NFS - Synced Folders | Vagrant by HashiCorpProduct
Jump to