---
schema_version: '1.0'
id: security-20260903-764e5a
title: CVE-2026-78677 — gitpython
url: https://osv.dev/vulnerability/PYSEC-2026-3787
url_hash: 764e5af095315305949d86bc1ccc8d65f0474495b0a491be2b87a8bda718981c
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-3787
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-78677
- PYSEC-2026-3787
- severity:CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- gitpython
- PyPI
lang: en
published_at: '2026-08-25T02:16:52Z'
fetched_at: '2026-09-03T11:30:56.219618Z'
updated_at: '2026-09-03T14:35:27Z'
status: published
content_hash: 3d527c9bd51438cd11f14868a02db11aecb5671a17473473998f7f29135a2a45
content_changed_at: null
license_note: full
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 reposito
summary_source: rss
summary_en: 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 reposito
summary_omitted_reason: null
redistribution: true
keywords_en:
- cve
- CVE-2026-28684
- CVE-2026-78677
- gitpython
- library vulnerability
- PyPI
- PYSEC-2026-3787
- software security
entities_en:
- name: CVE-2026-28684
  type: event
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE-2026-28684
  type: event
key_facts: []
related: []
related_auto: []
computed_at: '2026-09-03T14:34:31Z'
---

# CVE-2026-78677 — gitpython

## TL;DR
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 reposito

## Key Points
- cve / CVE-2026-78677 / PYSEC-2026-3787 / severity:CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X / gitpython / PyPI

## Details
**Severity:** CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
**Advisory:** PYSEC-2026-3787 (CVE-2026-78677)

**Details:**
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.

**References:**
- https://www.vulncheck.com/advisories/gitpython-before-path-traversal-via-separate-git-dir
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-8mcc-hrx5-hvxc

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-3787_

## Source
元記事: [CVE-2026-78677 — gitpython](https://osv.dev/vulnerability/PYSEC-2026-3787) — published 2026-08-25T02:16:52Z
