CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2022

CVE-2022-42906
Powerline Gitstatus Project Powerline Gitstatus vulnerability

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.

Affected products

Powerline Gitstatus, Debian Linux. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Powerline Gitstatus Project Powerline Gitstatus runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Set the orderSystems that can be reached from the internet come first, then the rest.

References

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.