{"id":"UBUNTU-CVE-2022-42906","details":"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.","modified":"2026-05-20T16:08:18.660692445Z","published":"2022-10-13T03:15:00Z","upstream":["CVE-2022-42906"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-42906"},{"type":"REPORT","url":"https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45"},{"type":"REPORT","url":"https://github.com/jaspernbrouwer/powerline-gitstatus/pull/46"},{"type":"REPORT","url":"https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-42906"}],"affected":[{"package":{"name":"powerline-gitstatus","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/powerline-gitstatus?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"powerline-gitstatus","binary_version":"1.3.1-1"},{"binary_name":"python3-powerline-gitstatus","binary_version":"1.3.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42906.json"}},{"package":{"name":"powerline-gitstatus","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/powerline-gitstatus?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.1-2","1.3.1-3"],"ecosystem_specific":{"binaries":[{"binary_name":"powerline-gitstatus","binary_version":"1.3.1-3"},{"binary_version":"1.3.1-3","binary_name":"python3-powerline-gitstatus"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42906.json"}},{"package":{"name":"powerline-gitstatus","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/powerline-gitstatus?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"powerline-gitstatus","binary_version":"1.3.2-1"},{"binary_name":"python3-powerline-gitstatus","binary_version":"1.3.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42906.json"}},{"package":{"name":"powerline-gitstatus","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/powerline-gitstatus?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.3-1"],"ecosystem_specific":{"binaries":[{"binary_name":"powerline-gitstatus","binary_version":"1.3.3-1"},{"binary_name":"python3-powerline-gitstatus","binary_version":"1.3.3-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42906.json"}},{"package":{"name":"powerline-gitstatus","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/powerline-gitstatus?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.3-1","1.3.3-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.3.3-1build1","binary_name":"powerline-gitstatus"},{"binary_name":"python3-powerline-gitstatus","binary_version":"1.3.3-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42906.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}