CVE-2026-78677

published 25 Aug 2026 · updated 8 Oct 2026

GitPython before 3.1.59 Path Traversal via separate-git-dir

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.1.59.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
gitpython-developers<3.1.593.1.59

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-78677 severity on Zeptric[![CVE-2026-78677](https://zeptric.io/badge/cve/CVE-2026-78677.svg)](https://zeptric.io/cve/CVE-2026-78677)