🇰🇷 한글 설명
GitPython 3.1.53 미만 버전에서 git config 파일의 섹션 이름을 적절히 이스케이프하지 못하는 취약점이 발견되었습니다. 공격자는 악의적인 서브모듈 이름을 통해 임의의 설정 지시어를 주입할 수 있으며, 이를 통해 core.sshCommand와 같은 위험한 설정을 조작하여 원격 코드 실행(RCE)을 달성할 수 있습니다.
💡 쉬운 설명
Git 도구를 사용하는 프로그램에서 이름이 조작된 서브모듈을 불러올 때, 공격자가 몰래 악성 명령어를 설정 파일에 끼워 넣을 수 있는 문제입니다. 이 설정이 실행되면 공격자가 사용자의 컴퓨터에서 원하는 명령을 마음대로 실행할 수 있게 됩니다.
🇺🇸 원문 (English)
GitPython before 3.1.53 fails to properly escape section names in git config files, allowing attackers to inject arbitrary configuration directives through malicious submodule names. Attackers can inject core.sshCommand or other dangerous config keys into the victim's .git/config via create_submodule or clone_from operations, achieving remote code execution when git performs ssh operations.
📍 영향받는 시스템
GitPython versions before 3.1.53
⚔️ 공격 벡터
악의적으로 조작된 서브모듈 이름을 포함한 create_submodule 또는 clone_from 작업 수행
🛡️ 대응 방법
GitPython 버전을 3.1.53 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 Version이 3.1.53보다 낮으면 취약한 상태입니다.
pip show gitpython | grep Version