Skip to content
OpenAdvisories
High · 7.8 CVE-2022-42717 EUVD-2022-45783GHSA-mc87-5qgf-5qvj

An issue was discovered in Hashicorp Packer before 2.3.1. The recommended sudoers configuration for Vagrant on Linux is insecure. If the ho…

Published Oct 11, 2022 · Updated May 20, 2025 · 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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS vagrant No fix yet —
Ubuntu 20.04 LTS vagrant No fix yet —
Ubuntu 18.04 LTS vagrant No fix yet —
Ubuntu 16.04 LTS vagrant No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) packer 1.8.7-1 —

References