🔍 CVE-2026-78677

7.5
CVSS Score
HIGH
2026-08-25
2026-10-12 15:10
✅ 완료

🇰🇷 한글 설명

GitPython 3.1.59 미만 버전에서 unsafe_git_clone_options에 --separate-git-dir 옵션이 누락되어 발생합니다. 공격자는 Repo.clone_from() 또는 Repo.clone() 호출 시 separate_git_dir 파라미터를 조작하여 의도하지 않은 경로에 임의의 Git 디렉토리를 생성할 수 있습니다.

💡 쉬운 설명

Git 저장소를 복사할 때 저장소의 설정 파일이 저장되는 위치를 공격자가 원하는 곳으로 바꿀 수 있는 취약점입니다. 이를 통해 공격자는 시스템의 엉뚱한 위치에 폴더를 만들거나 악성 코드를 실행할 위험이 있습니다.

🇺🇸 원문 (English)

GitPython before 3.1.59 omits --separate-git-dir from unsafe_git_clone_options, allowing attackers to create arbitrary git directories outside the intended clone destination. Attackers can pass a separate_git_dir parameter to Repo.clone_from() or Repo.clone() to redirect repository metadata to an attacker-controlled filesystem path, enabling arbitrary directory creation and potential hook execution.

📍 영향받는 시스템

GitPython versions before 3.1.59

⚔️ 공격 벡터

Repo.clone_from() 또는 Repo.clone() 메서드에 조작된 separate_git_dir 파라미터 전달

🛡️ 대응 방법

GitPython 라이브러리를 3.1.59 버전 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전 번호가 3.1.59보다 낮으면 취약한 상태입니다.

Shell / Script
pip show GitPython | grep Version

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

💻 영향받는 소프트웨어

Git