---
schema_version: '1.0'
id: security-20260917-fc3185
title: CVE-2026-69097 — gitpython
url: https://osv.dev/vulnerability/PYSEC-2026-3981
url_hash: fc318508af31bfec4bce7383afa9b9a4f739f636732cca6dd0e4021c23835f27
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-3981
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-69097
- PYSEC-2026-3981
- severity:CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- gitpython
- PyPI
lang: en
published_at: '2026-08-03T14:16:30Z'
fetched_at: '2026-09-17T16:07:54.001419Z'
updated_at: '2026-09-17T16:15:28Z'
status: published
content_hash: fc61204bb2dc45ef7e8a47f3e4f0050358d1cadf5dc0a75c4b55fd1766df947a
content_changed_at: null
license_note: full
summary: GitPython before 3.1.53 fails to properly escape section names in git config
  files, allowing attackers to inject arbitrary configuration directives through malicious
  submodule names. Attackers can inject core.sshCommand or other dangerous config
  keys into the victim's .git/config
summary_source: rss
summary_en: GitPython before 3.1.53 fails to properly escape section names in git
  config files, allowing attackers to inject arbitrary configuration directives through
  malicious submodule names. Attackers can inject core.sshCommand or other dangerous
  config keys into the victim's .git/config
summary_omitted_reason: null
redistribution: true
keywords_en:
- cve
- CVE-2025-69230
- CVE-2026-69097
- gitpython
- library vulnerability
- PyPI
- PyPI:click
- PYSEC-2026-3981
- severity:CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- software security
entities_en:
- name: CVE-2025-69230
  type: event
- name: PyPI:click
  type: artifact
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE-2025-69230
  type: event
- name: PyPI:click
  type: artifact
key_facts: []
related: []
related_auto:
- name: CVE-2026-40347
  type: event
  weight: 1.0
- name: CVE-2026-21441
  type: event
  weight: 1.0
- name: portal
  type: organization
  weight: 1.0
computed_at: '2026-09-17T16:15:22Z'
---

# CVE-2026-69097 — gitpython

## TL;DR
GitPython before 3.1.53 fails to properly escape section names in git config files, allowing attackers to inject arbitrary configuration directives through malicious submodule names. Attackers can inject core.sshCommand or other dangerous config keys into the victim's .git/config

## Key Points
- cve / CVE-2026-69097 / PYSEC-2026-3981 / severity:CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H / gitpython / PyPI

## Details
**Severity:** CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
**Advisory:** PYSEC-2026-3981 (CVE-2026-69097)

**Details:**
GitPython before 3.1.53 fails to properly escape section names in git config files, allowing attackers to inject arbitrary configuration directives through malicious submodule names. Attackers can inject core.sshCommand or other dangerous config keys into the victim's .git/config via create_submodule or clone_from operations, achieving remote code execution when git performs ssh operations.

**References:**
- https://www.vulncheck.com/advisories/gitpython-before-config-injection-via-submodule-names
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-3rp5-jjmw-4wv2

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

## Source
元記事: [CVE-2026-69097 — gitpython](https://osv.dev/vulnerability/PYSEC-2026-3981) — published 2026-08-03T14:16:30Z
