GHSA-w67g-6gjv-c599

Suggest an improvement
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
JSON Data
https://api.osv.dev/v1/vulns/GHSA-w67g-6gjv-c599
Aliases
Published
2022-10-13T12:00:26Z
Modified
2025-02-13T05:12:28.120200Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Powerline Gitstatus vulnerable to arbitrary code execution
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.

Database specific
{
    "github_reviewed_at": "2022-10-13T19:13:14Z",
    "cwe_ids": [
        "CWE-77",
        "CWE-94"
    ],
    "nvd_published_at": "2022-10-13T03:15:00Z",
    "severity": "HIGH",
    "github_reviewed": true
}
References

Affected packages

PyPI / powerline-gitstatus

Package

Name
powerline-gitstatus
View open source insights on deps.dev
Purl
pkg:pypi/powerline-gitstatus

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
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