---
id: GHSA-7r39-6q8m-qw68
title: >-
  Duplicate Advisory: clone_from()/clone() omit --separate-git-dir from
  unsafe_git_clone_options, enabling arbitrary git-directory creation outside
  the destination
summary: >-
  Duplicate Advisory: clone_from()/clone() omit --separate-git-dir from
  unsafe_git_clone_options, enabling arbitrary git-directory creation outside
  the destination
severity: high
cvss: 7.5
cwe:
  - CWE-22
vendor: gitpython
product: gitpython
ecosystem: pip
affected:
  - gitpython <= 3.1.58
published: '2026-08-25'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T18:41:45Z'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-7r39-6q8m-qw68'
references:
  - url: >-
      https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-8mcc-hrx5-hvxc
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-78677'
  - url: >-
      https://www.vulncheck.com/advisories/gitpython-before-path-traversal-via-separate-git-dir
  - url: 'https://github.com/advisories/GHSA-7r39-6q8m-qw68'
tags:
  - ghsa
  - pip
ingestedAt: '2026-09-08T19:08:49.634Z'
---

## Overview

## Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-8mcc-hrx5-hvxc. This link is maintained to preserve external references.

## Original 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.

## Affected packages

- `gitpython <= 3.1.58`

## Remediation

Refer to the advisory for the patched release.
