# CVE-2022-42717

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-10-11 · Modified: 2025-05-20
- Aliases: UBUNTU-CVE-2022-42717
- Record: https://cvemate.com/vulnerability/CVE-2022-42717 · JSON: https://cvemate.com/vulnerability/CVE-2022-42717/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.246%, percentile 16.954%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu vagrant (Ubuntu): All versions (No fix recorded)
- hashicorp vagrant: \< 2.3.1

## References

- <https://github.com/hashicorp/vagrant/pull/12910>
- <https://www.vagrantup.com/docs/synced-folders/nfs>
- <https://discuss.hashicorp.com/t/hcsec-2022-23-vagrant-nfs-sudoers-configuration-allows-for-local-privilege-escalation/45423>
- <https://ubuntu.com/security/CVE-2022-42717>
- <https://www.cve.org/CVERecord?id=CVE-2022-42717>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-42717>

---

Data as of 2026-12-05T10:32:53.311Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
