CVE-2022-42906
HIGH 7.8CVSS 3.1Powerline Gitstatus vulnerable to arbitrary code execution
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.
- Published
- 13 Oct 2022
- Last modified
- 7 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-77CWE-94
- Also known as
- GHSA-w67g-6gjv-c599PYSEC-2026-898
- Sources
- NVDJSONOSV GHSA-w67g-6gjv-c599JSONOSV PYSEC-2026-898JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | powerline_gitstatus_project | powerline_gitstatuscpe:2.3:a:powerline_gitstatus_project:powerline_gitstatus:*:*:*:*:*:*:*:* |
< 1.3.2 | 1.3.2 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | PyPI | powerline-gitstatus | < 1.3.2 | 1.3.2 |
References
- https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2 · Release Notes, WEB
- https://lists.debian.org/debian-lts-announce/2023/01/msg00017.html · Mailing List, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-42906 · ADVISORY
- https://github.com/jaspernbrouwer/powerline-gitstatus/commit/fe8e963b3489e4cceaa2c1f26f2bcc2ef405364c · WEB
- https://github.com/jaspernbrouwer/powerline-gitstatus · PACKAGE
- https://pypi.org/project/powerline-gitstatus · PACKAGE
- https://github.com/advisories/GHSA-w67g-6gjv-c599 · ADVISORY
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 13 Oct 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Oct 2022)