CVE-2022-42717
JSON

7.8high

An issue was discovered in Hashicorp Packer before 2.3.1.

Severity
7.8high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
hashicorp vagrantbefore 2.3.1NVD

All scores

CISA-ADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-284

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Se ha detectado un problema en Hashicorp Packer versiones anteriores a 2.3.1. La configuración de sudoers recomendada para Vagrant en Linux es insegura. Si el host ha sido configurado de acuerdo con esta documentación, los usuarios no privilegiados en el host pueden aprovechar un comodín en la configuración de sudoers para ejecutar comandos arbitrarios como root

References

Sources

SourceRecordLicence
CVE ListCVE-2022-42717 changed 2025-05-20CVE Terms of Use
NVDCVE-2022-42717 changed 2026-06-17Public domain