CVEfocus › CVE database › CVE-2022-42906

CVE-2022-42906

CVSS 7.8 HighEPSS 0.5% (higher than 42% of CVEs)Published 2022-10-13Updated 2025-05-15Assigner: mitre

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.

CWE-77

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
1Fix pending
3Under investigation
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10powerline-gitstatusFix pendingUBUNTU-CVE-2022-42906
Ubuntu 26.04powerline-gitstatusUnder investigationUBUNTU-CVE-2022-42906
Ubuntu 25.10powerline-gitstatusWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-42906
Ubuntu 24.04powerline-gitstatusUnder investigationUBUNTU-CVE-2022-42906
Ubuntu 22.04powerline-gitstatusUnder investigationUBUNTU-CVE-2022-42906
Ubuntu 20.04powerline-gitstatusWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-42906
Debian 14powerline-gitstatusFixed1.3.2-1DEBIAN-CVE-2022-42906
Debian 13powerline-gitstatusFixed1.3.2-1DEBIAN-CVE-2022-42906
Debian 12powerline-gitstatusFixed1.3.2-1DEBIAN-CVE-2022-42906
PyPI librarypowerline-gitstatusFixed1.3.2PYSEC-2026-898

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.