Vulnerability · Published Oct 13, 2022 · Assigned by mitre

CVE-2022-42906

High 7.8

In plain English

A high-severity command injection in the powerline-gitstatus package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.5%top 58.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12powerline-gitstatus1.3.2-1DEBIAN-CVE-2022-42906
Debian:13powerline-gitstatus1.3.2-1DEBIAN-CVE-2022-42906
Debian:14powerline-gitstatus1.3.2-1DEBIAN-CVE-2022-42906
PyPIpowerline-gitstatus1.3.2GHSA-w67g-6gjv-c599
PyPIpowerline-gitstatus1.3.2PYSEC-2026-898
Ubuntu:22.04:LTSpowerline-gitstatusno fix listedUBUNTU-CVE-2022-42906
Ubuntu:24.04:LTSpowerline-gitstatusno fix listedUBUNTU-CVE-2022-42906
Ubuntu:25.10powerline-gitstatusno fix listedUBUNTU-CVE-2022-42906
Ubuntu:26.04:LTSpowerline-gitstatusno fix listedUBUNTU-CVE-2022-42906
Ubuntu:26.10powerline-gitstatusno fix listedUBUNTU-CVE-2022-42906

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-77 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References