CVE-2022-42906: Command Injection

Published Oct 13, 2022
·
Updated

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 Software

10 affected componentsFixes available
pip/powerline-gitstatus<1.3.2
1.3.2
Powerline Gitstatus Project Powerline Gitstatus<1.3.2
Debian Debian Linux=10.0
debian/powerline-gitstatus<1.3.2-1
1.3.2-1
debian/powerline-gitstatus<1.3.2-1
1.3.2-1
debian/powerline-gitstatus<1.3.2-1
1.3.2-1
debian/powerline-gitstatus
1.3.2-0+deb10u11.3.2-0+deb11u11.3.2-1
ubuntu/powerline-gitstatus*
ubuntu/powerline-gitstatus*
ubuntu/powerline-gitstatus*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/powerline-gitstatus to a version that resolves this vulnerability.

    Fixed in 1.3.2
  2. Upgrade

    Upgrade debian/powerline-gitstatus to a version that resolves this vulnerability.

    Fixed in 1.3.2-1
  3. Upgrade

    Upgrade debian/powerline-gitstatus to a version that resolves this vulnerability.

    Fixed in 1.3.2-0+deb10u1Fixed in 1.3.2-0+deb11u1Fixed in 1.3.2-1
  4. Upgrade

    Upgrade powerline-gitstatus (Powerline Gitstatus) to a version that resolves this vulnerability.

    Fixed in 1.3.2
  5. Compensating control

    When using powerline-gitstatus, avoid changing into attacker-controlled directories (e.g., directories on shared filesystems or extracted archives) that could contain malicious git repositories/configs.

Event History

Oct 13, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via OSV·03:15 AM
DescriptionSeverityAffected Software
Data Sourced
03:15 AM
DescriptionSeverityWeaknessAffected Software
Advisory Published
12:00 PM
Sep 4, 2023
Advisory Published
05:00 AM
Jun 17, 2026
Updated
via NVD·05:05 AM
Affected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2022-42906?

CVE-2022-42906 has been classified as a critical vulnerability due to its potential for arbitrary code execution.

2

How do I fix CVE-2022-42906?

To remediate CVE-2022-42906, upgrade powerline-gitstatus to version 1.3.2 or later.

3

What is the impact of CVE-2022-42906 on my system?

CVE-2022-42906 could allow an attacker to execute arbitrary commands on systems using vulnerable versions of powerline-gitstatus.

4

Which versions of powerline-gitstatus are affected by CVE-2022-42906?

All versions of powerline-gitstatus prior to 1.3.2 are affected by CVE-2022-42906.

5

Does CVE-2022-42906 affect specific operating systems?

CVE-2022-42906 primarily impacts users of the powerline-gitstatus package, particularly on systems using Debian Linux version 10.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203