ADVISORIES

Vulnerability

CVE-2026-78677

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.

19 advisories report this vulnerability, across 8 ecosystems.

Advisories in PyPI

  • GHSA-8mcc-hrx5-hvxc

    GitPython: clone_from()/clone() omit --separate-git-dir from unsafe_git_clone_options, enabling arbitrary git-directory creation outside the destination

    High CVE-2026-78677 PyPI Updated 8 September 2026
  • PYSEC-2026-3787

    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…

    CVE-2026-78677 PyPI Updated 3 September 2026

References