{"api_version":"1","generated_at":"2026-04-17T08:33:38+00:00","cve":"CVE-2022-42906","urls":{"html":"https://cve.report/CVE-2022-42906","api":"https://cve.report/api/cve/CVE-2022-42906.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-42906","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-42906"},"summary":{"title":"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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2022-10-13 03:15:00","updated_at":"2023-03-24 18:15:00"},"problem_types":["CWE-77"],"metrics":[],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00017.html","name":"[debian-lts-announce] 20230120 [SECURITY] [DLA 3277-1] powerline-gitstatus security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3277-1] powerline-gitstatus security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2","name":"https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2","refsource":"MISC","tags":[],"title":"Release v1.3.2: Fix command injection via malicious repository config · jaspernbrouwer/powerline-gitstatus · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45","name":"https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45","refsource":"MISC","tags":[],"title":"Security risk with untrusted repositories · Issue #45 · jaspernbrouwer/powerline-gitstatus · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-42906","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42906","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"42906","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"42906","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"powerline_gitstatus_project","cpe5":"powerline_gitstatus","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-42906","qid":"181357","title":"Debian Security Update for powerline-gitstatus (CVE-2022-42906)"},{"cve":"CVE-2022-42906","qid":"181489","title":"Debian Security Update for powerline-gitstatus (DLA 3277-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2022-42906","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45","refsource":"MISC","name":"https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45"},{"url":"https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2","refsource":"MISC","name":"https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2"},{"refsource":"MLIST","name":"[debian-lts-announce] 20230120 [SECURITY] [DLA 3277-1] powerline-gitstatus security update","url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00017.html"}]}},"nvd":{"publishedDate":"2022-10-13 03:15:00","lastModifiedDate":"2023-03-24 18:15:00","problem_types":["CWE-77"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:powerline_gitstatus_project:powerline_gitstatus:*:*:*:*:*:*:*:*","versionEndExcluding":"1.3.2","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}