Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. powerline-gitstatus
  4. ›
  5. CVE-2022-42906

CVE-2022-42906: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

October 13, 2022 (updated March 24, 2023)

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

  • github.com/advisories/GHSA-w67g-6gjv-c599
  • github.com/jaspernbrouwer/powerline-gitstatus/commit/fe8e963b3489e4cceaa2c1f26f2bcc2ef405364c
  • github.com/jaspernbrouwer/powerline-gitstatus/issues/45
  • github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2
  • nvd.nist.gov/vuln/detail/CVE-2022-42906

Code Behaviors & Features

Detect and mitigate CVE-2022-42906 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.3.2

Solution

Unfortunately, there is no solution available yet.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

Source file

pypi/powerline-gitstatus/CVE-2022-42906.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:13 +0000.