CVE-2022-42717
Packer vulnerability analysis and mitigation

Overview

The vulnerability (CVE-2022-42717) was discovered in HashiCorp Vagrant versions before 2.3.1, affecting the recommended sudoers configuration for NFS on Linux systems. The vulnerability was disclosed on October 10, 2022, and it allows for local privilege escalation on Linux hosts that have implemented the previously recommended sudoers configuration for Vagrant's NFS shared folders functionality (HashiCorp Discuss).

Technical details

The vulnerability stems from an insecure wildcard in the sudoers configuration that was recommended in Vagrant's documentation for NFS driver on Linux. This configuration was designed to remove the need for vagrant users to type their password when starting a Vagrant guest. However, the implementation allowed non-privileged users on the host to leverage the wildcard in the sudoers configuration to execute arbitrary commands with root privileges (HashiCorp Discuss).

Impact

The vulnerability enables local privilege escalation, allowing non-privileged users on affected Linux hosts to execute arbitrary commands with root privileges. This could potentially lead to complete system compromise by local users (HashiCorp Discuss).

Mitigation and workarounds

Users should update to Vagrant version 2.3.1 or later and follow the new instructions in the documentation for configuring their host's sudoers file. The update includes changes to support new recommendations and addresses the security vulnerability by implementing a more secure sudoers configuration (HashiCorp Discuss).

Additional resources


SourceThis report was generated using AI

Related Packer vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-47913HIGH7.5
  • PackerPacker
  • buildah-tests
NoYesNov 13, 2025
CVE-2025-61725HIGH7.5
  • cAdvisorcAdvisor
  • thanos-operator-fips
NoYesOct 29, 2025
CVE-2025-58181MEDIUM5.3
  • cAdvisorcAdvisor
  • eksctl
NoYesNov 19, 2025
CVE-2025-47914MEDIUM5.3
  • cAdvisorcAdvisor
  • argocd-fips-3.2
NoYesNov 19, 2025
CVE-2025-61724MEDIUM5.3
  • cAdvisorcAdvisor
  • dockerize
NoYesOct 29, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management