GHSA-w67g-6gjv-c599

Source
https://github.com/advisories/GHSA-w67g-6gjv-c599
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-w67g-6gjv-c599/GHSA-w67g-6gjv-c599.json
Aliases
Published
2022-10-13T12:00:26Z
Modified
2023-11-08T04:10:40.438840Z
Details

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.

References

Affected packages

PyPI / powerline-gitstatus

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0The exact introduced commit is unknown
Fixed
1.3.2

Affected versions

1.*

1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
1.1.0
1.1.1
1.2.0
1.2.1
1.3.0
1.3.1

Ecosystem specific

{
    "affected_functions": [
        "powerline_gitstatus.segments.GitStatusSegment.get_base_command"
    ]
}