kcve.ai취약점 정보 · 내 자산 확인

CVE-2021-21300 malicious repositories can execute remote code while cloning

악성 저장소는 복제하는 동안 원격 코드를 실행할 수 있습니다.

설명

Git is an open-source distributed revision control system. In affected versions of Git a specially crafted repository that contains symbolic links as well as files using a clean/smudge filter such as Git LFS, may cause just-checked out script to be executed while cloning onto a case-insensitive file system such as NTFS, HFS+ or APFS (i.e. the default file systems on Windows and macOS). Note that clean/smudge filters have to be configured for that. Git for Windows configures Git LFS by default, and is therefore vulnerable. The problem has been patched in the versions published on Tuesday, March 9th, 2021. As a workaound, if symbolic link support is disabled in Git (e.g. via `git config --global core.symlinks false`), the described attack won't work. Likewise, if no clean/smudge filters such as Git LFS are configured globally (i.e. _before_ cloning), the attack is foiled. As always, it is best to avoid cloning repositories from untrusted sources. The earliest impacted version is 2.14.2. The fix versions are: 2.30.1, 2.29.3, 2.28.1, 2.27.1, 2.26.3, 2.25.5, 2.24.4, 2.23.4, 2.22.5, 2.21.4, 2.20.5, 2.19.6, 2.18.5, 2.17.62.17.6.

Git은 오픈 소스 분산 리비전 제어 시스템입니다. 영향을 받는 Git 버전에서는 심볼릭 링크와 Git LFS와 같은 clean/smudge 필터를 사용하는 파일을 포함하는 특별히 제작된 저장소가 NTFS, HFS+ 또는 APFS와 같은 대소문자를 구분하지 않는 파일 시스템에 복제하는 동안 스크립트를 바로 검사할 수 있습니다(예: Windows 및 macOS의 기본 파일 시스템). 이를 위해 clean/smudge 필터가 구성되어야 합니다. Git for Windows는 기본적으로 Git LFS를 구성하므로 취약합니다. 이 문제는 2021년 3월 9일 화요일에 발표된 버전에서 패치되었습니다. workaound로서, 심볼릭 링크 지원이 Git에서 비활성화되어 있다면(예를 들어 `git config --global core.symlinks false`를 통해), 설명된 공격은 작동하지 않을 것이다. 마찬가지로, Git LFS와 같은 clean/smudge 필터가 전역적으로 구성되지 않으면(예: _before_ cloning) 공격이 실패합니다. 언제나처럼, 신뢰할 수없는 출처에서 복제 저장소를 피하는 것이 가장 좋습니다. 가장 먼저 영향을 받은 버전은 2.14.2이다. 수정 버전은 다음과 같습니다 2.30.1, 2.29.3, 2.28.1, 2.27.1, 2.26.3, 2.25.5, 2.24.4, 2.23.4, 2.22.5, 2.21.4, 2.20.5, 2.19.6, 2.18.5, 2.17.62.17.6.

영향 받는 제품 제품 1개

  • git

    git

    해결 버전 있음

    영향 받는 버전

    • 2.14.2 이상 2.17.62.17.6 미만
    • 2.18.0 이상 2.18.5 미만
    • 2.19.0 이상 2.19.6 미만
    • 2.20.0 이상 2.20.5 미만
    • 2.21.0 이상 2.21.4 미만
    • 2.22.0 이상 2.22.5 미만
    • 2.23.0 이상 2.23.4 미만
    • 2.24.0 이상 2.24.4 미만
    외 6개 구간 펼치기
    • 2.25.0 이상 2.25.5 미만
    • 2.26.0 이상 2.26.3 미만
    • 2.27.0 이상 2.27.1 미만
    • 2.28.0 이상 2.28.1 미만
    • 2.29.0 이상 2.29.3 미만
    • 2.30.0 이상 2.30.1 미만

    해결 버전

    • 2.17.62.17.6 이상
    • 2.18.5 이상
    • 2.19.6 이상
    • 2.20.5 이상
    • 2.21.4 이상
    • 2.22.5 이상
    • 2.23.4 이상
    • 2.24.4 이상
    외 6개 구간 펼치기
    • 2.25.5 이상
    • 2.26.3 이상
    • 2.27.1 이상
    • 2.28.1 이상
    • 2.29.3 이상
    • 2.30.1 이상

참고 자료 14건

‹ 목록

점검 지원 범위 문의

도입 문의