Skip to content
OpenAdvisories
High · 7.8 CVE-2022-42906 EUVD-2022-7172GHSA-w67g-6gjv-c599PYSEC-2026-898

Powerline Gitstatus vulnerable to arbitrary code execution

Published Oct 13, 2022 · Updated May 15, 2025 · 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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 powerline-gitstatus 1.3.2-1 —
Debian 13 powerline-gitstatus 1.3.2-1 —
Debian 12 powerline-gitstatus 1.3.2-1 —
Debian 10 powerline-gitstatus 1.3.2-0+deb10u1 DLA-3277-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 powerline-gitstatus No fix yet —
Ubuntu 26.04 LTS powerline-gitstatus No fix yet —
Ubuntu 25.10 powerline-gitstatus No fix yet —
Ubuntu 24.04 LTS powerline-gitstatus No fix yet —
Ubuntu 22.04 LTS powerline-gitstatus No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS powerline-gitstatus No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI powerline-gitstatus < 1.3.2 1.3.2 GHSA-w67g-6gjv-c599

Advisories 1

References