{"id":"CVE-2022-42906","published":"2022-10-13T00:00:00Z","modified":"2025-05-15T16:14:22Z","title":"powerline-gitstatus (aka Powerline Gitstatus) before 1.3.2 allows arbitrary code execution. git repositories can…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00477,"percentile":0.42124,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45","tags":[]},{"url":"https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00017.html","tags":["mailing-list"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":8.42},{"name":"CVSS severity","points":5.46}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-05-15T16:13:46.396263Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"powerline-gitstatus","vulnerableRanges":["<1.3.2"],"patched":["1.3.2"],"from":["GHSA-w67g-6gjv-c599","PYSEC-2026-898"],"provenance":"source"}],"summary":{"text":"The flaw is an arbitrary code execution issue in powerline-gitstatus (Powerline Gitstatus) before 1.3.2, caused by git's support for per-repository configuration that can run arbitrary commands. An attacker who can get a user to change their current directory into an attacker-controlled repository, such as one on a shared filesystem or in an extracted archive, can have arbitrary commands run under their control, since the tool automatically executes git commands to populate the prompt, and this requires only that the user takes that directory change action.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:36Z"},"euvd":{"id":"EUVD-2022-7172","exploited":false,"provenance":"source"},"lineage":{"parents":[{"from":"CVE-2022-20001","to":"CVE-2022-42906","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"NOTE: this is similar to CVE-2022-20001.","from":"CVE.org","in":"CVE-2022-42906"}]}]}}