{"id":"CVE-2022-42906","aliases":["CVE-2022-42906","GHSA-w67g-6gjv-c599","PYSEC-2026-898"],"related":[],"kind":"vulnerability","state":"published","title":"Powerline Gitstatus vulnerable to arbitrary code execution","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"powerline-gitstatus (también se conoce como Powerline Gitstatus) versiones anteriores a 1.3.2, permite la ejecución de código arbitrario. Los repositorios git pueden contener una configuración por repositorio que cambia el comportamiento de git, incluyendo la ejecución de comandos arbitrarios. Cuando es usado powerline-gitstatus, al cambiar a un directorio son ejecutados automáticamente comandos git para mostrar información sobre el repositorio actual en el prompt. Si un atacante puede convencer a un usuario para que cambie su directorio actual a uno controlado por el atacante, como en un sistema de archivos compartido o un archivo extraído, powerline-gitstatus ejecutará comandos arbitrarios bajo el control del atacante. NOTA: esto es similar a CVE-2022-20001","source":"nvd"}],"published":"2022-10-13T00:00:00.000Z","modified":"2026-07-07T11:56:20.123Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-77","CWE-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.3.2"}],"ecosystem":"PyPI","package":"powerline-gitstatus","purl":"pkg:pypi/powerline-gitstatus","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.3.2"}],"vendor":"powerline_gitstatus_project","product":"powerline_gitstatus","cpe":"cpe:2.3:a:powerline_gitstatus_project:powerline_gitstatus:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.3.2"}],"ecosystem":"PyPI","package":"powerline-gitstatus","purl":"pkg:pypi/powerline-gitstatus","source":"pysec"}],"references":[{"url":"https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45","tags":["exploit","issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2","tags":["release-notes","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00017.html","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42906","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/jaspernbrouwer/powerline-gitstatus/commit/fe8e963b3489e4cceaa2c1f26f2bcc2ef405364c","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/jaspernbrouwer/powerline-gitstatus","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/powerline-gitstatus","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-w67g-6gjv-c599","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-05-15T16:13:46.396Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-42906","url":"https://www.cve.org/CVERecord?id=CVE-2022-42906","licence":"CVE Terms of Use","modified":"2025-05-15T16:14:22.051Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w67g-6gjv-c599","url":"https://github.com/advisories/GHSA-w67g-6gjv-c599","licence":"CC-BY-4.0","modified":"2026-07-07T11:56:20.123Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-42906","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42906","licence":"Public domain","modified":"2026-06-17T05:05:34.447Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-898","url":"https://osv.dev/vulnerability/PYSEC-2026-898","licence":"CC-BY-4.0","modified":"2026-07-07T11:45:15.889Z"}],"updatedAt":"2026-11-25T22:58:15.662Z","epss":{"score":0.00477,"percentile":0.42835,"date":"2026-12-02T12:00:21.000Z"}}