CVE-2022-42717: High severity HashiCorp Vagrant vulnerability

Published Oct 11, 2022
·
Updated

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

4 affected components
HashiCorp Vagrant<2.3.1
Linux Linux kernel
All of the following
HashiCorp Vagrant<2.3.1
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade hashicorp/packer to a version that resolves this vulnerability.

    Fixed in 2.3.1
  2. Compensating control

    On Linux, replace the recommended (insecure) sudoers configuration for Vagrant with a secure sudoers configuration that does not allow wildcard expansion that non-privileged users can leverage to execute arbitrary commands as root.

Event History

Oct 11, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·11:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID?

The vulnerability ID is CVE-2022-42717.

2

What is the severity level of CVE-2022-42717?

The severity level of CVE-2022-42717 is high (7.8).

3

What is the affected software?

The affected software is Hashicorp Vagrant before version 2.3.1.

4

How can non-privileged users leverage the vulnerability?

Non-privileged users on the host can leverage a wildcard in the sudoers configuration to execute arbitrary commands.

5

How can I fix the vulnerability?

To fix the vulnerability, upgrade to Hashicorp Vagrant version 2.3.1 or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203