🇰🇷 한글 설명
GitPython 3.1.54 미만 버전의 unsafe_git_clone_options 함수 내 차단 목록이 불완전하여 --template 옵션이 누락되었습니다. 공격자는 이 옵션을 악용하여 악성 post-checkout 훅이 포함된 디렉토리를 지정함으로써 저장소 클론 과정에서 임의의 명령을 실행할 수 있습니다.
💡 쉬운 설명
Git 저장소를 복사할 때 특정 설정을 조작하여 해커가 원하는 명령어를 몰래 실행하게 만드는 취약점입니다. 해커가 만든 특수한 폴더를 이용해 사용자의 컴퓨터에서 악성 코드가 작동할 수 있습니다.
🇺🇸 원문 (English)
GitPython before 3.1.54 contains an incomplete denylist in unsafe_git_clone_options that omits --template, allowing attackers to achieve arbitrary command execution during clone operations. Attackers can supply --template pointing to a directory containing malicious post-checkout hooks that execute when git clones the repository.
📍 영향받는 시스템
GitPython 3.1.54 미만 모든 버전
⚔️ 공격 벡터
클론 작업 시 --template 옵션에 악성 훅이 포함된 디렉토리를 전달하여 명령 실행
🛡️ 대응 방법
GitPython을 3.1.54 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 3.1.54보다 낮으면 취약한 상태입니다.
pip show gitpython | grep Version