Vulnerability Description
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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Powerline Gitstatus Project | Powerline Gitstatus | < 1.3.2 |
| Debian | Debian Linux | 10.0 |
Related Weaknesses (CWE)
References
- https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45ExploitIssue TrackingThird Party Advisory
- https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2Release Notes
- https://lists.debian.org/debian-lts-announce/2023/01/msg00017.htmlMailing ListThird Party Advisory
- https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45ExploitIssue TrackingThird Party Advisory
- https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2Release Notes
- https://lists.debian.org/debian-lts-announce/2023/01/msg00017.htmlMailing ListThird Party Advisory
FAQ
What is CVE-2022-42906?
CVE-2022-42906 is a vulnerability with a CVSS score of 7.8 (HIGH). 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 runnin...
How severe is CVE-2022-42906?
CVE-2022-42906 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-42906?
Check the references section above for vendor advisories and patch information. Affected products include: Powerline Gitstatus Project Powerline Gitstatus, Debian Debian Linux.