Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/hashicorp/packer
  4. ›
  5. CVE-2022-42717

CVE-2022-42717: Improper Privilege Management

October 11, 2022 (updated October 14, 2022)

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.

References

  • discuss.hashicorp.com/t/hcsec-2022-23-vagrant-nfs-sudoers-configuration-allows-for-local-privilege-escalation/45423
  • github.com/hashicorp/vagrant/pull/12910
  • nvd.nist.gov/vuln/detail/CVE-2022-42717
  • www.vagrantup.com/docs/synced-folders/nfs

Code Behaviors & Features

Detect and mitigate CVE-2022-42717 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.3.1

Fixed versions

  • v2.3.1

Solution

Upgrade to version 2.3.1 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-269: Improper Privilege Management

Source file

go/github.com/hashicorp/packer/CVE-2022-42717.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:46 +0000.