CVE-2022-42906 json
Powerline Gitstatus vulnerable to arbitrary code execution
published 4y ago modified 4mo ago also GHSA-w67g-6gjv-c599 , PYSEC-2026-898 , EUVD-2022-7172
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 41%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi powerline-gitstatus 1.3.2
- powerline_gitstatus_project powerline_gitstatus 1.3.2
- powerline-gitstatus Debian 14, Debian 13, Debian 12 1.3.2-1
debian advisories DEBIAN-CVE-2022-42906
Is CVE-2022-42906 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- last yr.
Exploit prediction
0.48% chance of exploitation in the next 30 days, higher than 41% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | powerline-gitstatus | <1.3.2 |
1.3.2 |
Classification
References
-
github.com
/jaspernbrouwer/powerline-gitstatus/commit/fe8e963b3489e4cceaa2c1f26f2bcc2ef405364c
web
-
github.com
/jaspernbrouwer/powerline-gitstatus/issues/45
web, exploit, issue-tracking, third-party-advisory
-
github.com
/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2
web, release-notes
-
lists.debian.org
/debian-lts-announce/2023/01/msg00017.html
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-42906
advisory
-
github.com
/jaspernbrouwer/powerline-gitstatus
package
-
pypi.org
/project/powerline-gitstatus
package
-
github.com
/advisories/GHSA-w67g-6gjv-c599
advisory
Sources
- CVE List CVE-2022-42906
- GitHub Advisory GHSA-w67g-6gjv-c599
- NVD CVE-2022-42906
- OSV PYSEC-2026-898
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.