# CVE-2021-28955: Arbitrary code execution due to an uncontrolled search path for the git binary

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.72%, higher than 78% of CVEs (2026-12-01)
- Published: 2021-03-22T06:19:43.000Z
- Modified: 2026-07-08T06:28:20.942Z
- Also known as: GHSA-m898-h4pm-pqfr
- Weaknesses: CWE-427
- Assigned by: mitre

## Description

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).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/MichaelMure/git-bug (Go): before 0.7.2
- git-bug_project git-bug: before 0.7.2

## Every score

- GitHub: 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`
- NVD: 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`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/MichaelMure/git-bug/security/advisories/GHSA-m898-h4pm-pqfr> (third-party-advisory)
- <https://vuln.ryotak.me/advisories/18> (third-party-advisory, web)
- <https://github.com/git-bug/git-bug/security/advisories/GHSA-m898-h4pm-pqfr> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-28955> (advisory)
- <https://github.com/MichaelMure/git-bug/pull/604> (web)
- <https://github.com/git-bug/git-bug> (package)

## Sources

- CVE List: [CVE-2021-28955](https://www.cve.org/CVERecord?id=CVE-2021-28955), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-m898-h4pm-pqfr](https://github.com/advisories/GHSA-m898-h4pm-pqfr), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-28955](https://nvd.nist.gov/vuln/detail/CVE-2021-28955), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-28955 · Whole record: https://cve.day/CVE-2021-28955.json · Rebuilt by cve.day 2026-11-25T22:58:00.354Z
