CVE-2022-42717: Hashicorp Packer - Misconfiguration
- Cve: CVE-2022-42717
- Name: Hashicorp Packer - Misconfiguration
- 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.
- Impact: Non-privileged users can execute arbitrary commands as root, leading to full system compromise.
- Remediation: Update to version 2.3.1 or later, and review sudoers configuration for security best practices.
- Vulnerability type: misconfiguration
- Vulnerability impact: privilege_escalation
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00246
- Epss percentile: 0.15993
- Assignee: [email protected]
- Published at: 2022-10-11T23:15:10Z
- Age in days: 1505
- Modified at: 2026-06-17T05:05:10Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-42717
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| NVD-CWE-Other | — |
| CWE-284 | Improper Access Control |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/hashicorp/vagrant/pull/12910 | Patch, Third Party Advisory |
| https://discuss.hashicorp.com/t/hcsec-2022-23-vagrant-nfs-sudoers-configuration-allows-for-local-privilege-escalation/45423 | Vendor Advisory |
| https://www.vagrantup.com/docs/synced-folders/nfs | Product |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| hashicorp:vagrant | < 2.3.1 | yes | nvd | /v1/products/hashicorp/vagrant |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| hashicorp/vagrant | pull | yes | /v1/repositories/hashicorp/vagrant |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts