7.8
HIGH
CVE-2022-42717
Hashicorp Packer Sudoers Wildcard Sudo Escalation
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.

INFO

Published Date :

Oct. 11, 2022, 11:15 p.m.

Last Modified :

Nov. 21, 2024, 7:25 a.m.

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2022-42717 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Hashicorp vagrant
2 Hashicorp vagrant_vmware_utility
1 Linux linux_kernel
References to Advisories, Solutions, and Tools

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-42717 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-42717 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://discuss.hashicorp.com/t/hcsec-2022-23-vagrant-nfs-sudoers-configuration-allows-for-local-privilege-escalation/45423
    Added Reference https://github.com/hashicorp/vagrant/pull/12910
    Added Reference https://www.vagrantup.com/docs/synced-folders/nfs
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Reanalysis by [email protected]

    Oct. 18, 2022

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:hashicorp:packer:*:*:*:*:*:*:*:* versions up to (excluding) 2.3.1 AND OR *cpe:2.3:a:hashicorp:vagrant:*:*:*:*:*:*:*:* versions up to (excluding) 2.3.1 OR cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*
  • Initial Analysis by [email protected]

    Oct. 14, 2022

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://discuss.hashicorp.com/t/hcsec-2022-23-vagrant-nfs-sudoers-configuration-allows-for-local-privilege-escalation/45423 No Types Assigned https://discuss.hashicorp.com/t/hcsec-2022-23-vagrant-nfs-sudoers-configuration-allows-for-local-privilege-escalation/45423 Vendor Advisory
    Changed Reference Type https://github.com/hashicorp/vagrant/pull/12910 No Types Assigned https://github.com/hashicorp/vagrant/pull/12910 Patch, Third Party Advisory
    Changed Reference Type https://www.vagrantup.com/docs/synced-folders/nfs No Types Assigned https://www.vagrantup.com/docs/synced-folders/nfs Product
    Added CWE NIST CWE-269
    Added CPE Configuration OR *cpe:2.3:a:hashicorp:packer:*:*:*:*:*:*:*:* versions up to (excluding) 2.3.1
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-42717 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-42717 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.04 }} 0.00%

score

0.11794

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability