CVE-2020-26233 Remote Code Execution in Git Credential Manager Core
Git Credential Manager Core에서 원격 코드 실행
설명
Git Credential Manager Core (GCM Core) is a secure Git credential helper built on .NET Core that runs on Windows and macOS. In Git Credential Manager Core before version 2.0.289, when recursively cloning a Git repository on Windows with submodules, Git will first clone the top-level repository and then recursively clone all submodules by starting new Git processes from the top-level working directory. If a malicious git.exe executable is present in the top-level repository then this binary will be started by Git Credential Manager Core when attempting to read configuration, and not git.exe as found on the %PATH%. This only affects GCM Core on Windows, not macOS or Linux-based distributions. GCM Core version 2.0.289 contains the fix for this vulnerability, and is available from the project's GitHub releases page. GCM Core 2.0.289 is also bundled in the latest Git for Windows release; version 2.29.2(3). As a workaround, users should avoid recursively cloning untrusted repositories with the --recurse-submodules option.
Git Credential Manager Core(GCM Core)는 Windows 및 macOS에서 실행되는 .NET Core에 구축된 안전한 Git 자격 증명 도우미입니다. 버전 2.0.289 이전 Git Credential Manager Core에서 Git 저장소를 하위 모듈로 재귀적으로 복제할 때 Git은 먼저 최상위 저장소를 복제한 다음 최상위 작업 디렉토리에서 새 Git 프로세스를 시작하여 모든 하위 모듈을 재귀적으로 복제합니다. 만약 최상위 저장소에 악성 git.exe 실행 파일이 있다면 이 바이너리는 %PATH%에서 볼 수 있는 git.exe가 아닌 설정을 읽으려고 할 때 Git Credential Manager Core에 의해 시작될 것입니다. 이 문제는 macOS 또는 Linux 기반 배포판이 아닌 Windows의 GCM Core에만 영향을 미칩니다. GCM Core 버전 2.0.289에는 이 취약점에 대한 수정 사항이 포함되어 있으며 프로젝트의 GitHub 릴리스 페이지에서 확인할 수 있습니다. GCM Core 2.0.289는 최신 Git for Windows 릴리스에도 번들로 포함되어 있습니다. 버전 2.29.2(3). 해결 방법으로, 사용자는 --recurse-submodules 옵션을 사용하여 신뢰할 수 없는 저장소를 재귀적으로 복제하지 말아야 합니다.
영향 받는 제품 제품 2개
-
microsoft
Git-Credential-Manager-Core
영향 받는 버전
- 2.0.280 이하
해결 버전
해결된 버전 정보가 없습니다.
-
NVD 기준 해결 버전 있음
microsoft
git credential manager core
영향 받는 버전
- 2.0.289 미만
해결 버전
- 2.0.289 이상
참고 자료 5건
- blog.blazeinfosec.com https://blog.blazeinfosec.com/attack-of-the-clones-2-git-command-client-remote-code-execution-strikes-back/ (새 창)
- github.com https://github.com/microsoft/Git-Credential-Manager-Core/commit/61c0388e064babb3b4e60d3ec269e8a07ab3bc76 (새 창)
- github.com https://github.com/microsoft/Git-Credential-Manager-Core/releases/tag/v2.0.289-beta (새 창)
- github.com https://github.com/microsoft/Git-Credential-Manager-Core/security/advisories/GHSA-2gq7-ww4j-3m76 (새 창)
- git-scm.com https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---recurse-submodulesltpathspecgt (새 창)