CVE-2022-42906 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 15, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45 | CVE | ExploitIssue TrackingThird Party Advisory |
| https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2 | CVE | Release Notes |
| https://lists.debian.org/debian-lts-announce/2023/01/msg00017.html | CVE | Mailing ListThird Party Advisory |
| https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45 | [email protected] | ExploitIssue TrackingThird Party Advisory |
| https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2 | [email protected] | Release Notes |
| https://lists.debian.org/debian-lts-announce/2023/01/msg00017.html | [email protected] | Mailing ListThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | [email protected] |
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| powerline gitstatus project powerline gitstatus | < 1.3.2 |
CPE
Remediation
| |
| debian debian linux | 10.0 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| May 15, 2025 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Mar 24, 2023 | Modified Analysis | [email protected] |
| Jan 20, 2023 | CVE Modified | [email protected] |
| Oct 17, 2022 | Initial Analysis | [email protected] |