{"id":"CVE-2022-42906","aliases":["DEBIAN-CVE-2022-42906","DLA-3277-1","EUVD-2022-7172","GHSA-w67g-6gjv-c599","PYSEC-2026-898","UBUNTU-CVE-2022-42906"],"status":"published","title":"Powerline Gitstatus vulnerable to arbitrary code execution","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.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.00477,"percentile":0.41539,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-77","CWE-94"],"published":"2022-10-13T00:00:00Z","modified":"2026-10-28T02:30:46Z","fixes":[{"ecosystem":"PyPI","package":"powerline-gitstatus","fixed_in":["1.3.2"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"powerline-gitstatus","fixed_in":["1.3.2-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"powerline-gitstatus","fixed_in":["1.3.2-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"powerline-gitstatus","fixed_in":["1.3.2-1"],"sources":["osv"]},{"ecosystem":"Debian:10","package":"powerline-gitstatus","fixed_in":["1.3.2-0+deb10u1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"powerline-gitstatus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.2"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"powerline-gitstatus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.2-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"powerline-gitstatus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.2-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"powerline-gitstatus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.2-1"}]}]},{"source":"osv","ecosystem":"Debian:10","package":"powerline-gitstatus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.2-0+deb10u1"}]}],"versions":["1.3.1-1","1.3.1-2","1.3.1-3","1.3.1-4"]},{"source":"osv","ecosystem":"PyPI","package":"powerline-gitstatus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.2"}]}],"versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.3.1"]},{"source":"osv","ecosystem":"PyPI","package":"powerline-gitstatus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.2"}]}],"versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.3.1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"powerline-gitstatus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.1-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"powerline-gitstatus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.1-2","1.3.1-3"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"powerline-gitstatus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.2-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"powerline-gitstatus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.3-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"powerline-gitstatus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.3-1build1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"powerline-gitstatus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.3-1","1.3.3-1build1"]}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"powerline_gitstatus_project","product":"powerline_gitstatus"}],"references":[{"url":"https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45","tags":["x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2","tags":["x_transferred","Release Notes","web","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00017.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","article","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42906","tags":["advisory"]},{"url":"https://github.com/jaspernbrouwer/powerline-gitstatus/commit/fe8e963b3489e4cceaa2c1f26f2bcc2ef405364c","tags":["web"]},{"url":"https://github.com/advisories/GHSA-w67g-6gjv-c599","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42906.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-42906","tags":["advisory"]},{"url":"https://github.com/jaspernbrouwer/powerline-gitstatus","tags":["package"]},{"url":"https://pypi.org/project/powerline-gitstatus","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2022-42906","tags":["report"]},{"url":"https://github.com/jaspernbrouwer/powerline-gitstatus/pull/46","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-42906","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-42906","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.","status":"published","published":"2022-10-13T00:00:00Z","modified":"2025-05-15T16:14:22.051Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"adp"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T14:34:27.327929Z"}],"euvd":[{"id":"EUVD-2022-7172","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.","status":"published","published":"2022-10-13T00:00:00Z","modified":"2025-05-15T16:14:22Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T20:32:46.52057Z"}],"ghsa":[{"id":"GHSA-w67g-6gjv-c599","title":"Powerline Gitstatus vulnerable to arbitrary code execution","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.","status":"published","published":"2022-10-13T12:00:26Z","modified":"2023-09-04T05:00:45Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-77","CWE-94"],"updated_at":"2026-11-02T14:37:02.095916Z"}],"nvd":[{"id":"CVE-2022-42906","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.","status":"published","published":"2022-10-13T03:15:09.13Z","modified":"2026-06-17T05:05:34.447Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T14:07:29.52424Z"}],"osv":[{"id":"CVE-2022-42906","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.","status":"published","published":"2022-10-13T00:00:00Z","modified":"2026-10-28T02:30:46.437585674Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:27.186787Z"},{"id":"GHSA-w67g-6gjv-c599","title":"Powerline Gitstatus vulnerable to arbitrary code execution","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.","status":"published","published":"2022-10-13T12:00:26Z","modified":"2026-07-07T11:56:20.123796374Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-77","CWE-94"],"updated_at":"2026-11-02T15:46:58.04805Z"},{"id":"PYSEC-2026-898","title":"Powerline Gitstatus vulnerable to arbitrary code execution","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.","status":"published","published":"2026-07-07T10:17:22.618683Z","modified":"2026-07-07T11:45:15.889782993Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:52:58.117212Z"},{"id":"UBUNTU-CVE-2022-42906","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.","status":"published","published":"2022-10-13T03:15:00Z","modified":"2026-10-17T12:57:15.688987876Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T16:53:56.473586Z"},{"id":"DEBIAN-CVE-2022-42906","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.","status":"published","published":"2022-10-13T03:15:09.13Z","modified":"2026-11-03T06:02:46.962922138Z","updated_at":"2026-11-03T06:43:43.638289Z"},{"id":"DLA-3277-1","title":"powerline-gitstatus - security update","status":"published","published":"2023-01-20T00:00:00Z","modified":"2026-03-09T01:19:57.545673Z","updated_at":"2026-11-02T15:46:11.734021Z"}]}}
