🇰🇷 한글 설명
GitPython 3.1.54 미만 버전에서 check_unsafe_options 가드 기능을 우회하여 원격 코드 실행이 가능한 취약점이 발견되었습니다. 공격자는 단일 문자 키워드 인자 내에 git 옵션을 숨겨 전달함으로써 clone_from, fetch, pull 등 다양한 메서드를 통해 임의의 OS 명령을 실행할 수 있습니다.
💡 쉬운 설명
Git 관련 작업을 도와주는 프로그램에서 보안 검사를 속이는 방법이 발견되었습니다. 이를 통해 해커가 사용자의 컴퓨터에서 몰래 명령어를 실행할 수 있습니다.
🇺🇸 원문 (English)
GitPython versions before 3.1.54 contain a remote code execution vulnerability in the check_unsafe_options guard that can be bypassed by smuggling git options inside single-character kwarg values. Attackers can supply crafted option dictionaries to clone_from, fetch, pull, push, ls_remote, iter_commits, blame, or archive methods to execute arbitrary OS commands via the --upload-pack parameter.
📍 영향받는 시스템
GitPython versions before 3.1.54
⚔️ 공격 벡터
조작된 옵션 딕셔너리를 사용하여 --upload-pack 파라미터를 통한 명령 주입
🛡️ 대응 방법
GitPython을 3.1.54 버전 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 3.1.54 미만이면 취약한 상태입니다.
pip show GitPython | grep Version