# CVE-2022-42717: An issue was discovered in Hashicorp Packer before 2.3.1.

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2022-10-11T00:00:00.000Z
- Modified: 2026-06-17T05:05:10.943Z
- Weaknesses: CWE-284
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- hashicorp vagrant: before 2.3.1

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <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)

## Sources

- CVE List: [CVE-2022-42717](https://www.cve.org/CVERecord?id=CVE-2022-42717), CVE Terms of Use, modified 2025-05-20
- NVD: [CVE-2022-42717](https://nvd.nist.gov/vuln/detail/CVE-2022-42717), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-42717 · Whole record: https://cve.day/CVE-2022-42717.json · Rebuilt by cve.day 2026-11-25T22:58:15.609Z
