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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | powerline-gitstatus | 1.3.2-1 | DEBIAN-CVE-2022-42906 |
| Debian:13 | powerline-gitstatus | 1.3.2-1 | DEBIAN-CVE-2022-42906 |
| Debian:14 | powerline-gitstatus | 1.3.2-1 | DEBIAN-CVE-2022-42906 |
| PyPI | powerline-gitstatus | 1.3.2 | GHSA-w67g-6gjv-c599 |
| PyPI | powerline-gitstatus | 1.3.2 | PYSEC-2026-898 |
| Ubuntu:22.04:LTS | powerline-gitstatus | no fix listed | UBUNTU-CVE-2022-42906 |
| Ubuntu:24.04:LTS | powerline-gitstatus | no fix listed | UBUNTU-CVE-2022-42906 |
| Ubuntu:25.10 | powerline-gitstatus | no fix listed | UBUNTU-CVE-2022-42906 |
| Ubuntu:26.04:LTS | powerline-gitstatus | no fix listed | UBUNTU-CVE-2022-42906 |
| Ubuntu:26.10 | powerline-gitstatus | no fix listed | UBUNTU-CVE-2022-42906 |
Affected products (as reported)
Weakness: CWE-77 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H