Skip to main content
← All vulnerabilities
CVE-2026-78677GHSA-8MCC-HRX5-HVXCPYSEC-2026-3787

GitPython before 3.1.59 Path Traversal via separate-git-dir

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.1.59
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • gitpython-developers GitPython

    fixed in 3.1.59

  • gitpythonPyPI

    fixed in 3.1.59

References 2

GitHub · gitpython-developers/GitPython

vulncheck.com