---
id: GHSA-3vrx-526r-64rm
title: >-
  Duplicate Advisory: GitPython: Arbitrary Git Repository Creation Outside the
  Working Tree via Unvalidated .gitmodules Submodule Name in GitPython
summary: >-
  Duplicate Advisory: GitPython: Arbitrary Git Repository Creation Outside the
  Working Tree via Unvalidated .gitmodules Submodule Name in GitPython
severity: high
cvss: 8.2
cwe:
  - CWE-22
vendor: gitpython
product: gitpython
ecosystem: pip
affected:
  - gitpython <= 3.1.57
published: '2026-08-19'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T20:55:05Z'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-3vrx-526r-64rm'
references:
  - url: >-
      https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hmq2-w58f-27jc
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-76222'
  - url: >-
      https://www.vulncheck.com/advisories/gitpython-before-path-traversal-via-gitmodules-submodule-name
  - url: 'https://github.com/advisories/GHSA-3vrx-526r-64rm'
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-hmq2-w58f-27jc. This link is maintained to preserve external references.

## Original Description
GitPython before 3.1.58 fails to validate submodule names from .gitmodules files, allowing attackers to create Git repositories at arbitrary filesystem paths outside the intended clone directory. Attackers can craft malicious repositories with traversal sequences in submodule names that GitPython processes during submodule initialization, creating attacker-controlled Git repositories at escaped filesystem locations.

## Affected packages

- `gitpython <= 3.1.57`

## Remediation

Refer to the advisory for the patched release.
