# CVE-2022-42906: Powerline Gitstatus vulnerable to arbitrary code execution

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 42% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-10-13T00:00:00.000Z
- Modified: 2026-07-07T11:56:20.123Z
- Also known as: GHSA-w67g-6gjv-c599, PYSEC-2026-898
- Weaknesses: CWE-77, CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- powerline-gitstatus (PyPI): before 1.3.2
- powerline_gitstatus_project powerline_gitstatus: before 1.3.2
- debian debian_linux: 10.0

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## 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)

## Sources

- CVE List: [CVE-2022-42906](https://www.cve.org/CVERecord?id=CVE-2022-42906), CVE Terms of Use, modified 2025-05-15
- GitHub Advisory Database: [GHSA-w67g-6gjv-c599](https://github.com/advisories/GHSA-w67g-6gjv-c599), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2022-42906](https://nvd.nist.gov/vuln/detail/CVE-2022-42906), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-898](https://osv.dev/vulnerability/PYSEC-2026-898), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2022-42906 · Whole record: https://cve.day/CVE-2022-42906.json · Rebuilt by cve.day 2026-11-25T22:58:15.662Z
