GHSA-fqfh-778m-2v32 GitHub CLI can execute a git binary from the current directory
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
Description
Impact
GitHub CLI depends on a git.exe executable being found in system %PATH% on Windows. However, if a malicious .\git.exe or .\git.bat is found in the current working directory at the time of running gh, the malicious command will be invoked instead of the system one.
Windows users who run gh inside untrusted directories are affected.
Patches
Users should upgrade to GitHub CLI v1.2.1.
Workarounds
Other than avoiding untrusted repositories, there is no workaround.
References
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| cli github.com/cli/cli(Go) | < 1.2.1 | 1.2.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cli github.com/cli/cli(Go) | < 1.2.1 | 1.2.1 |
References
- github.com vendor-advisory
- github.com