🇰🇷 한글 설명
GitPython 3.2.0 미만 버전에서 원격 코드 실행(RCE) 취약점이 발견되었습니다. Git.ls_remote 함수가 URL의 안전한 프로토콜 검증 없이 전달하여 공격자가 ext:: 프로토콜을 통해 명령을 실행할 수 있으며, merge_base 및 IndexFile.move에서도 옵션 주입이 가능합니다.
💡 쉬운 설명
GitPython이라는 도구를 사용할 때, 공격자가 특수하게 조작된 주소를 보내면 컴퓨터가 공격자의 명령을 대신 실행할 수 있는 보안 약점이 있습니다. 이를 통해 해커가 사용자의 컴퓨터를 마음대로 조종할 위험이 있습니다.
🇺🇸 원문 (English)
GitPython before 3.2.0 contains a remote code execution vulnerability that allows attackers to run commands because Git.ls_remote forwards URLs without check_unsafe_protocols validation. Attackers can supply ext:: remote-helper URLs to execute commands when git permits the ext transport, while merge_base and IndexFile.move also accept unguarded option injection.
📍 영향받는 시스템
GitPython 3.2.0 미만 모든 버전
⚔️ 공격 벡터
검증되지 않은 URL(ext:: 프로토콜 등)을 입력값으로 전달하여 원격 명령 실행
🛡️ 대응 방법
GitPython을 최신 버전인 3.2.0 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 Version이 3.2.0 미만이면 취약한 상태입니다.
pip show gitpython | grep Version