🇰🇷 한글 설명
GitPython 3.2.0 미만 버전의 Remote.pull() 함수에서 원격 코드 실행(RCE) 취약점이 발견되었습니다. 공격자가 refspec을 제어할 수 있는 경우, --upload-pack 옵션을 사용하여 로컬 경로 또는 SSH 전송을 통해 OS 명령어를 실행할 수 있습니다.
💡 쉬운 설명
Git 도구를 사용하는 프로그램에서 공격자가 특수하게 조작된 명령을 보내면, 컴퓨터가 해커의 명령을 대신 실행하게 되는 보안 약점입니다. 이를 통해 해커가 사용자의 컴퓨터를 마음대로 조종할 위험이 있습니다.
🇺🇸 원문 (English)
GitPython from 3.1.30 before 3.2.0 contains a remote code execution vulnerability in Remote.pull() whose unsafe-option guard inspects only keyword arguments, not the positional refspec. Attackers controlling the refspec can supply --upload-pack=<command> to execute OS commands as the calling process over local-path or SSH transports.
📍 영향받는 시스템
GitPython 3.1.30 미만 버전 (3.2.0 미만)
⚔️ 공격 벡터
제어 가능한 refspec에 --upload-pack 옵션을 삽입하여 로컬 또는 SSH를 통해 명령 실행
🛡️ 대응 방법
GitPython 버전을 3.2.0 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 3.2.0보다 낮으면 취약한 상태입니다.
pip show GitPython | grep Version