CVE-2021-28955: Github.com/MichaelMure/git bug Arbitrary Code Execution Due To Vulnerability
CRITICALCVE-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.
CVE-2021-28955 at a Glance
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).
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.
Upgrade github.com/MichaelMure/git-bug to 0.7.2
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
CVE-2021-28955 Affected Github.com/MichaelMure/git bug Versions
1 component(s)| 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?
Which Github.com/MichaelMure/git bug versions are affected?
What version fixes CVE-2021-28955?
Is github.com/MichaelMure/git-bug affected?
What is the CVSS score of CVE-2021-28955?
What CWE is associated with CVE-2021-28955?
How can I check Go dependencies for CVE-2021-28955?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}