Skip to content
Heist/ feed
Back to feed
High

powerline-gitstatus — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2022-42906

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.

Products
powerline-gitstatus
Affected versions
1.3.1-1, 1.3.1-2, 1.3.1-3, 1.3.2-1, 1.3.3-1, 1.3.3-1build1
Fixed versions
Not specified
CVEs
CVE-2022-42906
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:38 UTC · Revision 1

Source evidence

UBUNTU-CVE-2022-42906

core-osv · Original source

Published 13 Oct 2022, 03:15 UTC

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.

osv:UBUNTU-CVE-2022-42906

powerline-gitstatus

Fixed versions: Not specified

powerline-gitstatus

Fixed versions: Not specified

powerline-gitstatus

Fixed versions: Not specified

powerline-gitstatus

Fixed versions: Not specified

powerline-gitstatus

Fixed versions: Not specified

powerline-gitstatus

Fixed versions: Not specified

Complete source record
{
  "id": "ce0a222c65697a6416061274e22aaa9ae022a4c020a5ecd889e16bcd77448643",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-42906",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2022-42906",
    "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.",
    "evidence": "osv:UBUNTU-CVE-2022-42906",
    "products": [
      {
        "name": {
          "value": "powerline-gitstatus",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.1-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "powerline-gitstatus",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.1-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.3.1-3",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "powerline-gitstatus",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.2-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "powerline-gitstatus",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.3-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "powerline-gitstatus",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.3-1build1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "powerline-gitstatus",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.3-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1.3.3-1build1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2022-42906",
      "aliases": [
        "UBUNTU-CVE-2022-42906"
      ],
      "metrics": [
        {
          "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "powerline-gitstatus",
            "purl": "pkg:deb/ubuntu/powerline-gitstatus?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.3.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42906.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "powerline-gitstatus",
                "binary_version": "1.3.1-1"
              },
              {
                "binary_name": "python3-powerline-gitstatus",
                "binary_version": "1.3.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "powerline-gitstatus",
            "purl": "pkg:deb/ubuntu/powerline-gitstatus?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.3.1-2",
            "1.3.1-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42906.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "powerline-gitstatus",
                "binary_version": "1.3.1-3"
              },
              {
                "binary_name": "python3-powerline-gitstatus",
                "binary_version": "1.3.1-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "powerline-gitstatus",
            "purl": "pkg:deb/ubuntu/powerline-gitstatus?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.3.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42906.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "powerline-gitstatus",
                "binary_version": "1.3.2-1"
              },
              {
                "binary_name": "python3-powerline-gitstatus",
                "binary_version": "1.3.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "powerline-gitstatus",
            "purl": "pkg:deb/ubuntu/powerline-gitstatus?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.3.3-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42906.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "powerline-gitstatus",
                "binary_version": "1.3.3-1"
              },
              {
                "binary_name": "python3-powerline-gitstatus",
                "binary_version": "1.3.3-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "powerline-gitstatus",
            "purl": "pkg:deb/ubuntu/powerline-gitstatus?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.3.3-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42906.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "powerline-gitstatus",
                "binary_version": "1.3.3-1build1"
              },
              {
                "binary_name": "python3-powerline-gitstatus",
                "binary_version": "1.3.3-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "powerline-gitstatus",
            "purl": "pkg:deb/ubuntu/powerline-gitstatus?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.3.3-1",
            "1.3.3-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42906.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "powerline-gitstatus",
                "binary_version": "1.3.3-1build1"
              },
              {
                "binary_name": "python3-powerline-gitstatus",
                "binary_version": "1.3.3-1build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:15.688987876Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-42906"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2022-42906",
        "https://github.com/jaspernbrouwer/powerline-gitstatus/issues/45",
        "https://github.com/jaspernbrouwer/powerline-gitstatus/pull/46",
        "https://github.com/jaspernbrouwer/powerline-gitstatus/releases/tag/v1.3.2",
        "https://www.cve.org/CVERecord?id=CVE-2022-42906"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-42906",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 357051,
  "published_at": "2022-10-13T03:15:00+00:00"
}