Vulnerabilities in pkg:golang/github.com/MichaelMure/git-bug

PACKAGE
Advisory Identifier: GHSA-m898-h4pm-pqfr
Advisory Summary

CVE-2021-28955 is a CRITICAL (CVSS 9.8) arbitrary code execution due to vulnerability (CWE-427: Uncontrolled Search Path Element) affecting Github.com/MichaelMure/git bug libraries in the Go ecosystem. The issue involves arbitrary code execution due to an uncontrolled search path for the git binary. Remediation is available by upgrading affected packages to version 0.7.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/MichaelMure/git-bug

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/MichaelMure/git-bug. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-m898-h4pm-pqfr CVE-2021-28955 CRITICAL Arbitrary code execution due to an uncontrolled search path for the git binary

CVE-2021-28955 at a Glance

CVE Identifier CVE-2021-28955
GHSA Identifier GHSA-m898-h4pm-pqfr
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-427: Uncontrolled Search Path Element
Affected Product Github.com/MichaelMure/git bug
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2021-28955

To remediate this vulnerability, upgrade all affected Github.com/MichaelMure/git bug dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/MichaelMure/git-bug fixed: 0.7.2
Upgrade github.com/MichaelMure/git-bug to 0.7.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/MichaelMure/git-bug

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-28955, inspect your project dependencies for Github.com/MichaelMure/git bug:

inspect dependencies for github.com/MichaelMure/git-bug

Analyze the terminal output to locate any version of Github.com/MichaelMure/git bug in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-427: Uncontrolled Search Path Element, where the product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors. In Github.com/MichaelMure/git bug, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The go language recently addressed a security issue in the way that binaries are found before being executed. Some operating systems like Windows persist to have the current directory being part of the default search path, and having priority over the system-wide path. This means that it's possible for a malicious user to craft for example a `git.bat` command, commit it and push it in a repository. Later when git-bug search for the git binary, this malicious executable can take priority and be executed. ### Who is impacted This issue happen on Windows and some other operating systems with a badly configured PATH. All version prior to 0.7.2 are vulnerable to this issue. ### Patches Version 0.7.2 fix this issue. Users should update as soon as possible. ### References More details about this issue can be found [here](https://blog.golang.org/path-security).

CVE-2021-28955 Affected Github.com/MichaelMure/git bug Versions

1 component(s)
Fixed Versions:
0.7.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/MichaelMure/git-bug
Go
< 0.7.2
0.7.2

References

Frequently Asked Questions

What is CVE-2021-28955?
CVE-2021-28955 is a security vulnerability in Github.com/MichaelMure/git bug involving Arbitrary code execution due to an uncontrolled search path for the git binary under CWE-427: Uncontrolled Search Path Element.
Which Github.com/MichaelMure/git bug versions are affected?
Affected versions include releases prior to 0.7.2 across affected packages: github.com/MichaelMure/git-bug.
What version fixes CVE-2021-28955?
Upgrading to 0.7.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/MichaelMure/git-bug affected?
Yes, github.com/MichaelMure/git-bug is affected in releases prior to 0.7.2. Upgrade your dependency to 0.7.2 or later.
What is the CVSS score of CVE-2021-28955?
CVE-2021-28955 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2021-28955?
CVE-2021-28955 is classified under CWE-427: Uncontrolled Search Path Element (The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.).
How can I check Go dependencies for CVE-2021-28955?
Run the dependency tree command: 'inspect dependencies for github.com/MichaelMure/git-bug'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-m898-h4pm-pqfr",
  "modified" : "2025-05-19T16:35:59Z",
  "published" : "2021-05-25T18:44:09Z",
  "aliases" : [ "CVE-2021-28955" ],
  "summary" : "Arbitrary code execution due to an uncontrolled search path for the git binary",
  "details" : "### Impact\n\nThe go language recently addressed a security issue in the way that binaries are found before being executed. Some operating systems like Windows persist to have the current directory being part of the default search path, and having priority over the system-wide path.\n\nThis means that it's possible for a malicious user to craft for example a `git.bat` command, commit it and push it in a repository. Later when git-bug search for the git binary, this malicious executable can take priority  and be executed.\n\n### Who is impacted\n\nThis issue happen on Windows and some other operating systems with a badly configured PATH.\n\nAll version prior to 0.7.2 are vulnerable to this issue.\n\n### Patches\n\nVersion 0.7.2 fix this issue. Users should update as soon as possible.\n\n### References\n\nMore details about this issue can be found [here](https://blog.golang.org/path-security).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/MichaelMure/git-bug"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.7.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/git-bug/git-bug/security/advisories/GHSA-m898-h4pm-pqfr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-28955"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/MichaelMure/git-bug/pull/604"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/git-bug/git-bug"
  }, {
    "type" : "WEB",
    "url" : "https://vuln.ryotak.me/advisories/18"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-427" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-21T21:22:50Z",
    "nvd_published_at" : "2021-03-22T07:15:00Z"
  }
}