CVE-2022-41953 Git clone remote code execution vulnerability in git-for-windows
git-for-windows의 Git 클론 원격 코드 실행 취약점
설명
Git GUI is a convenient graphical tool that comes with Git for Windows. Its target audience is users who are uncomfortable with using Git on the command-line. Git GUI has a function to clone repositories. Immediately after the local clone is available, Git GUI will automatically post-process it, among other things running a spell checker called `aspell.exe` if it was found. Git GUI is implemented as a Tcl/Tk script. Due to the unfortunate design of Tcl on Windows, the search path when looking for an executable _always includes the current directory_. Therefore, malicious repositories can ship with an `aspell.exe` in their top-level directory which is executed by Git GUI without giving the user a chance to inspect it first, i.e. running untrusted code. This issue has been addressed in version 2.39.1. Users are advised to upgrade. Users unable to upgrade should avoid using Git GUI for cloning. If that is not a viable option, at least avoid cloning from untrusted sources.
Git GUI는 Windows용 Git과 함께 제공되는 편리한 그래픽 도구입니다. 대상 고객은 명령줄에서 Git을 사용하는 데 불편해하는 사용자다. Git GUI는 저장소를 복제하는 기능을 가지고 있다. 로컬 클론이 사용 가능해진 직후, Git GUI는 자동으로 사후 처리되며, 만약 발견되면 `aspell.exe`라는 맞춤법 검사기를 실행한다. Git GUI는 Tcl/Tk 스크립트로 구현되어 있다. Windows에서 Tcl의 불행한 설계로 인해 실행 파일을 찾을 때 검색 경로에는 항상 현재 디렉토리가 포함됩니다. 따라서 악성 저장소는 Git GUI에서 실행되는 최상위 디렉토리에 `aspell.exe`를 함께 제공 할 수 있으며 사용자에게 먼저 검사 할 기회를주지 않습니다. 이 문제는 버전 2.39.1에서 해결되었습니다. 사용자는 업그레이드하는 것이 좋습니다. 업그레이드할 수 없는 사용자는 복제를 위해 Git GUI를 사용하지 말아야 합니다. 이것이 실행 가능한 옵션이 아니라면, 적어도 신뢰할 수 없는 소스로부터의 복제를 피하십시오.
영향 받는 제품 제품 1개
-
해결 버전 있음
git-for-windows
git
영향 받는 버전
- 2.39.1 미만
해결 버전
- 2.39.1 이상
참고 자료 4건
- github.com https://github.com/git-for-windows/git/commit/7360767e8dfc1895a932324079f7d45d7791d39f (새 창)
- github.com https://github.com/git-for-windows/git/pull/4219 (새 창)
- github.com https://github.com/git-for-windows/git/security/advisories/GHSA-v4px-mx59-w99c (새 창)
- tcl.tk https://www.tcl.tk/man/tcl8.6/TclCmd/exec.html#M23 (새 창)