RCE in Powerline Gitstatus Project
CVE-2022-42906
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.004 (36.6th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 37th percentile — 36.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: +0.000
Affected products
- Powerline Gitstatus Project
- Debian Linux — versions 10.0
Weakness classification (CWE)
References
- github.com/jaspernbrouwer/powerline-gitstatus/issues/45 (Exploit, Third Party Advisory, Issue Tracking)
- github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2 (Release Notes)
- lists.debian.org/debian-lts-announce/2023/01/msg00017.html (mailing-list, Mailing List, Third Party Advisory)
Frequently asked questions
- What is CVE-2022-42906?
- CVE-2022-42906 is a high-severity vulnerability in Powerline Gitstatus Project, classified under Command Injection. CVSS score: 7.8/10. Published 2022-10-13.
- How severe is CVE-2022-42906?
- High severity. CVSS v3 base score is 7.8 out of 10.