CVE Vulnerabilities

CVE-2022-42717

Published: Oct 11, 2022 | Modified: May 20, 2025
CVSS 3.x
7.8
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Affected Software

NameVendorStart VersionEnd Version
VagrantHashicorp*2.3.1 (excluding)
VagrantUbuntubionic*
VagrantUbuntufocal*
VagrantUbuntukinetic*
VagrantUbuntulunar*
VagrantUbuntumantic*
VagrantUbuntutrusty*
VagrantUbuntuxenial*

References