---
schema_version: '1.0'
id: security-20260903-22c753
title: CVE-2026-76222 — gitpython
url: https://osv.dev/vulnerability/PYSEC-2026-3784
url_hash: 22c753def694c8306562ea7a1695580abe32fb8bb83a8d3626bb16a59d213646
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-3784
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-76222
- PYSEC-2026-3784
- severity:CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:H/SA:L/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-19T14:17:48Z'
fetched_at: '2026-09-03T11:30:56.199943Z'
updated_at: '2026-09-03T14:35:27Z'
status: published
content_hash: f8bc31f1d9982eb468d225dada8350e8aebafffe639dae0eb4ce675e568cf05c
content_changed_at: null
license_note: full
summary: 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 nam
summary_source: rss
summary_en: 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 nam
summary_omitted_reason: null
redistribution: true
keywords_en:
- cve
- CVE-2026-28684
- CVE-2026-76222
- gitpython
- library vulnerability
- PyPI
- PYSEC-2026-3784
- 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:15Z'
---

# CVE-2026-76222 — gitpython

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

## Key Points
- cve / CVE-2026-76222 / PYSEC-2026-3784 / severity:CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:H/SA:L/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:P/VC:N/VI:H/VA:L/SC:N/SI:H/SA:L/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-3784 (CVE-2026-76222)

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

**References:**
- https://www.vulncheck.com/advisories/gitpython-before-path-traversal-via-gitmodules-submodule-name
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hmq2-w58f-27jc

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

## Source
元記事: [CVE-2026-76222 — gitpython](https://osv.dev/vulnerability/PYSEC-2026-3784) — published 2026-08-19T14:17:48Z
