CVE-2021-28955
Arbitrary code execution due to an uncontrolled search path for the git binary
git-bug before 0.7.2 has an Uncontrolled Search Path Element. It will execute git.bat from the current directory in certain PATH situations (most often seen on Windows).
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
git-bug before 0.7.2 has an Uncontrolled Search Path Element. It will execute git.bat from the current directory in certain PATH situations (most often seen on Windows).
- Record
CVE-2021-28955- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-427
- Updated
- 2026-11-02
CVE List No score
git-bug before 0.7.2 has an Uncontrolled Search Path Element. It will execute git.bat from the current directory in certain PATH situations (most often seen on Windows).
- Record
CVE-2021-28955- Updated
- 2026-11-02
EUVDEUVD-2021-1138 No score
git-bug before 0.7.2 has an Uncontrolled Search Path Element. It will execute git.bat from the current directory in certain PATH situations (most often seen on Windows).
- Record
EUVD-2021-1138- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-m898-h4pm-pqfr
9.8
Arbitrary code execution due to an uncontrolled search path for the git binary
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.
- Record
GHSA-m898-h4pm-pqfr- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-427
- Updated
- 2026-11-02
OSV
9.8
git-bug before 0.7.2 has an Uncontrolled Search Path Element. It will execute git.bat from the current directory in certain PATH situations (most often seen on Windows).
- Record
CVE-2021-28955- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-m898-h4pm-pqfr
9.8
Arbitrary code execution due to an uncontrolled search path for the git binary
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.
- Record
GHSA-m898-h4pm-pqfr- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-427
- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12417-1 No score
git-bug-0.7.2+git.1665512451.0eef939-1.1 on GA media
These are all security issues fixed in the git-bug-0.7.2+git.1665512451.0eef939-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12417-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/MichaelMure/git-bugGo |
before 0.7.2 | 0.7.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-28955 is a critical vulnerability (CVSS 9.8) in Git-bug Project Git-bug, published March 22, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.72%, the 77th percentile. Fixed in github.com/MichaelMure/git-bug 0.7.2.
References
github.com/MichaelMure/git-bug/security/advisories/GHSA-m898-h4pm-pqfr
vuln.ryotak.me/advisories/18
nvd.nist.gov/vuln/detail/CVE-2021-28955
github.com/MichaelMure/git-bug/pull/604
github.com/git-bug/git-bug/security/advisories/GHSA-m898-h4pm-pqfr
github.com/advisories/GHSA-m898-h4pm-pqfr
github.com/git-bug/git-bug
suse.com/security/cve/CVE-2021-28955