CyberRota Analysis
AI-GeneratedGitPython versions prior to 3.1.59 are vulnerable to an issue where the `--separate-git-dir` option is not properly handled, allowing attackers to specify arbitrary directories for git repository metadata. This flaw can lead to unauthorized directory creation and the execution of malicious hooks, posing a significant risk to systems using this library. Organizations utilizing GitPython for automation or CI/CD processes should prioritize updating to mitigate potential exploitation.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
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.
Related CVEs
Other vulnerabilities affecting the same vendor(s)