7.8
HIGH
CVE-2022-42906
Powerline-Gitstatus Arbitrary Code Execution Vulnerability
Description

powerline-gitstatus (aka Powerline Gitstatus) before 1.3.2 allows arbitrary code execution. git repositories can contain per-repository configuration that changes the behavior of git, including running arbitrary commands. When using powerline-gitstatus, changing to a directory automatically runs git commands in order to display information about the current repository in the prompt. If an attacker can convince a user to change their current directory to one controlled by the attacker, such as in a shared filesystem or extracted archive, powerline-gitstatus will run arbitrary commands under the attacker's control. NOTE: this is similar to CVE-2022-20001.

INFO

Published Date :

Oct. 13, 2022, 3:15 a.m.

Last Modified :

March 24, 2023, 6:15 p.m.

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2022-42906 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 Debian debian_linux
1 Powerline_gitstatus_project powerline_gitstatus
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2022-42906.

URL Resource
https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45 Exploit Issue Tracking Third Party Advisory
https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2 Release Notes
https://lists.debian.org/debian-lts-announce/2023/01/msg00017.html Mailing List Third Party Advisory

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-42906 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-42906 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 [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Mar. 24, 2023

    Action Type Old Value New Value
    Changed Reference Type https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2 Release Notes, Third Party Advisory https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2 Release Notes
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2023/01/msg00017.html No Types Assigned https://lists.debian.org/debian-lts-announce/2023/01/msg00017.html Mailing List, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Jan. 20, 2023

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2023/01/msg00017.html [No Types Assigned]
  • Initial Analysis by [email protected]

    Oct. 17, 2022

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Changed Reference Type https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45 No Types Assigned https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45 Exploit, Issue Tracking, Third Party Advisory
    Changed Reference Type https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2 No Types Assigned https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2 Release Notes, Third Party Advisory
    Added CWE NIST CWE-77
    Added CPE Configuration OR *cpe:2.3:a:powerline_gitstatus_project:powerline_gitstatus:*:*:*:*:*:*:*:* versions up to (excluding) 1.3.2
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-42906 is associated with the following CWEs:

Exploit Prediction

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

0.07 }} 0.01%

score

0.31461

percentile

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