---
schema_version: '1.0'
id: security-20260910-1f0e5b
title: CVE-2026-73622 — gitpython
url: https://osv.dev/vulnerability/PYSEC-2026-3951
url_hash: 1f0e5b5854ec713169b2783bf4fbeefbf4ea125bf41858e2ee52f504dee17a0f
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-3951
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-73622
- PYSEC-2026-3951
- 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-13T12:17:27Z'
fetched_at: '2026-09-10T15:44:17.929441Z'
updated_at: '2026-09-10T15:44:52Z'
status: published
content_hash: d6f6bb2a2be4fc2680958859a471c9f76b37ae3a39d5b13caf9aaba6aa9593fa
content_changed_at: null
license_note: full
summary: GitPython before 3.1.55 fails to disable environment variable expansion in
  Remote.create() and Submodule.add() URL handling, allowing attackers to exfiltrate
  secrets by supplying URLs containing variable references. Attackers can craft URLs
  with environment variable tokens that a
summary_source: rss
summary_en: GitPython before 3.1.55 fails to disable environment variable expansion
  in Remote.create() and Submodule.add() URL handling, allowing attackers to exfiltrate
  secrets by supplying URLs containing variable references. Attackers can craft URLs
  with environment variable tokens that a
summary_omitted_reason: null
redistribution: true
keywords_en:
- CVE
- CVE-2026-73622
- gitpython
- library vulnerability
- PyPI
- PYSEC-2026-3951
- software security
entities_en:
- name: CVE
  type: data
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE
  type: data
key_facts: []
related: []
related_auto:
- name: 集団的免疫力
  type: concept
  weight: 1.0
computed_at: '2026-09-10T15:44:49Z'
---

# CVE-2026-73622 — gitpython

## TL;DR
GitPython before 3.1.55 fails to disable environment variable expansion in Remote.create() and Submodule.add() URL handling, allowing attackers to exfiltrate secrets by supplying URLs containing variable references. Attackers can craft URLs with environment variable tokens that a

## Key Points
- cve / CVE-2026-73622 / PYSEC-2026-3951 / 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-3951 (CVE-2026-73622)

**Details:**
GitPython before 3.1.55 fails to disable environment variable expansion in Remote.create() and Submodule.add() URL handling, allowing attackers to exfiltrate secrets by supplying URLs containing variable references. Attackers can craft URLs with environment variable tokens that are expanded into .git/config and .gitmodules, then transmitted to attacker-controlled hosts during fetch or pull operations.

**References:**
- https://www.vulncheck.com/advisories/gitpython-before-environment-variable-exfiltration-via-remote-add
- https://github.com/gitpython-developers/GitPython/commit/8ac5a30519b6f4af85398b9b9d7064ff4d452da2
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-94p4-4cq8-9g67

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

## Source
元記事: [CVE-2026-73622 — gitpython](https://osv.dev/vulnerability/PYSEC-2026-3951) — published 2026-08-13T12:17:27Z
