GitHub CLI can execute a git binary from the current directory
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
### 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 https://github.com/golang/go/issues/38736
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | github.com/cli/cli (Go) | before 1.2.1 | 1.2.1 | Patch available | GHSA-fqfh-778m-2v32 |
- github.com/cli/cli (Go) Vendor— Affected before 1.2.1 Fixed in 1.2.1 Patch available GHSA-fqfh-778m-2v32
Remediation
- Fix · GHSA-fqfh-778m-2v32 github.com/cli/cli (Go) Fixed in 1.2.1 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-fqfh-778m-2v32
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences