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 attackers control. NOTE: this is similar to CVE-2022-20001.
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Powerline_gitstatus | Powerline_gitstatus_project | * | 1.3.2 (excluding) |
Powerline-gitstatus | Ubuntu | kinetic | * |
Powerline-gitstatus | Ubuntu | lunar | * |
Powerline-gitstatus | Ubuntu | mantic | * |
Powerline-gitstatus | Ubuntu | trusty | * |
Powerline-gitstatus | Ubuntu | xenial | * |
Command injection vulnerabilities typically occur when:
Many protocols and products have their own custom command language. While OS or shell command strings are frequently discovered and targeted, developers may not realize that these other command languages might also be vulnerable to attacks. Command injection is a common problem with wrapper programs.