{"id":"CVE-2021-28955","aliases":["GHSA-m898-h4pm-pqfr"],"title":"Arbitrary code execution due to an uncontrolled search path for the git binary","summary":"Arbitrary code execution due to an uncontrolled search path for the git binary","severity":"critical","cvss":9.8,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","vendor":"MichaelMure","product":"github.com/MichaelMure/git-bug","ecosystem":"go","affected":["github.com/MichaelMure/git-bug < 0.7.2"],"patched":["github.com/MichaelMure/git-bug 0.7.2"],"published":"2021-05-25","updated":"2026-07-08","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-m898-h4pm-pqfr","references":[{"url":"https://github.com/git-bug/git-bug/security/advisories/GHSA-m898-h4pm-pqfr"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28955"},{"url":"https://github.com/MichaelMure/git-bug/pull/604"},{"url":"https://github.com/git-bug/git-bug"},{"url":"https://vuln.ryotak.me/advisories/18"}],"tags":["osv","go"],"epss":0.01719,"epssPercentile":0.76483,"ingestedAt":"2026-07-09T18:56:36.617Z","slug":"CVE-2021-28955","body":"## Overview\n\n### 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).\n\n## Affected packages\n\n- `github.com/MichaelMure/git-bug < 0.7.2`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `github.com/MichaelMure/git-bug 0.7.2`","depth":"midnight","depthScore":54,"depthScoreParts":{"impact":53.9,"likelihood":0.3,"exploitation":0,"ransomware":0},"changes":[]}