---
id: GHSA-298h-jpq4-m665
title: >-
  Duplicate Advisory: GitPython: Unguarded git option forwarding in Repo.init
  enables arbitrary command execution via --template clone hooks
summary: >-
  Duplicate Advisory: GitPython: Unguarded git option forwarding in Repo.init
  enables arbitrary command execution via --template clone hooks
severity: high
cvss: 7.5
cwe:
  - CWE-88
vendor: GitPython
product: GitPython
ecosystem: pip
affected:
  - GitPython <= 3.1.57
published: '2026-08-19'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T20:54:04Z'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-298h-jpq4-m665'
references:
  - url: >-
      https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-9rj7-rf2p-w77r
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-76218'
  - url: >-
      https://www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-repo-init
  - url: 'https://github.com/advisories/GHSA-298h-jpq4-m665'
tags:
  - ghsa
  - pip
ingestedAt: '2026-09-08T21:11:12.321Z'
---

## Overview

## Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-9rj7-rf2p-w77r. This link is maintained to preserve external references.

## Original Description
GitPython before 3.1.58 contains a remote code execution vulnerability in Repo.init that forwards unsafe git options without validation. Attackers can supply a template parameter pointing to a directory with malicious git hooks that execute arbitrary code when git operations are performed on the initialized repository.

## Affected packages

- `GitPython <= 3.1.57`

## Remediation

Refer to the advisory for the patched release.
