OSV 1.4.0 · github-reviewed · 修改于 2021-05-22 06:06
发布时间
2022-02-12 07:41
GitHub 审查时间
2021-05-22 06:06
NVD 发布时间
—
源文件
advisories/github-reviewed/2022/02/GHSA-fqfh-778m-2v32/GHSA-fqfh-778m-2v32.json
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.
Users should upgrade to GitHub CLI v1.2.1.
Other than avoiding untrusted repositories, there is no workaround.