{"id":"CVE-2021-28955","aliases":["CVE-2021-28955","GHSA-m898-h4pm-pqfr"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary code execution due to an uncontrolled search path for the git binary","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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).","source":"cvelist"},{"lang":"en","text":"### 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).","format":"markdown","source":"ghsa"},{"lang":"es","text":"git-bug versiones anteriores a 0.7.2, presenta un Elemento de Ruta de Búsqueda No Controlada.&#xa0;Ejecutará git.bat desde el directorio actual en determinadas situaciones de PATH (visto con mayor frecuencia en Windows)","source":"nvd"}],"published":"2021-03-22T06:19:43.000Z","modified":"2026-07-08T06:28:20.942Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-427"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.7.2"}],"ecosystem":"Go","package":"github.com/MichaelMure/git-bug","purl":"pkg:golang/github.com/MichaelMure/git-bug","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.7.2"}],"vendor":"git-bug_project","product":"git-bug","cpe":"cpe:2.3:a:git-bug_project:git-bug:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/MichaelMure/git-bug/security/advisories/GHSA-m898-h4pm-pqfr","tags":["third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://vuln.ryotak.me/advisories/18","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/git-bug/git-bug/security/advisories/GHSA-m898-h4pm-pqfr","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28955","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/MichaelMure/git-bug/pull/604","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/git-bug/git-bug","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-28955","url":"https://www.cve.org/CVERecord?id=CVE-2021-28955","licence":"CVE Terms of Use","modified":"2024-08-03T21:55:12.206Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m898-h4pm-pqfr","url":"https://github.com/advisories/GHSA-m898-h4pm-pqfr","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:20.942Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-28955","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28955","licence":"Public domain","modified":"2026-06-17T03:47:04.483Z"}],"updatedAt":"2026-11-25T22:58:00.354Z","epss":{"score":0.01719,"percentile":0.7815,"date":"2026-12-01T12:00:22.000Z"}}