---
schema_version: '1.0'
id: security-20260903-6ce34d
title: CVE-2026-78675 — gitpython
url: https://osv.dev/vulnerability/PYSEC-2026-3785
url_hash: 6ce34d5ecb92382a12232b886ef48d0b0e8db6632921267e1a8f065e92b3ac09
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-3785
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-78675
- PYSEC-2026-3785
- severity:CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- gitpython
- PyPI
lang: en
published_at: '2026-08-25T02:16:51Z'
fetched_at: '2026-09-03T11:30:56.202926Z'
updated_at: '2026-09-03T14:35:27Z'
status: published
content_hash: aae8fe976fed0913d3a7af4c51a54e31f98cabf92622731f54b5bc7ff4fe7bf7
content_changed_at: null
license_note: full
summary: GitPython before 3.1.59 fails to disable merge_includes when parsing .gitmodules,
  allowing attackers to disclose local file content by including arbitrary file paths
  via [include] directives. Attackers can craft a malicious .gitmodules file with
  include directives pointing to sen
summary_source: rss
summary_en: GitPython before 3.1.59 fails to disable merge_includes when parsing .gitmodules,
  allowing attackers to disclose local file content by including arbitrary file paths
  via [include] directives. Attackers can craft a malicious .gitmodules file with
  include directives pointing to sen
summary_omitted_reason: null
redistribution: true
keywords_en:
- cve
- CVE-2026-28684
- CVE-2026-78675
- gitpython
- library vulnerability
- PyPI
- PYSEC-2026-3785
- severity:CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- 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:24Z'
---

# CVE-2026-78675 — gitpython

## TL;DR
GitPython before 3.1.59 fails to disable merge_includes when parsing .gitmodules, allowing attackers to disclose local file content by including arbitrary file paths via [include] directives. Attackers can craft a malicious .gitmodules file with include directives pointing to sen

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

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

**Details:**
GitPython before 3.1.59 fails to disable merge_includes when parsing .gitmodules, allowing attackers to disclose local file content by including arbitrary file paths via [include] directives. Attackers can craft a malicious .gitmodules file with include directives pointing to sensitive files; when repo.submodules is accessed, GitConfigParser raises MissingSectionHeaderError embedding the target file's first line verbatim in the exception message.

**References:**
- https://www.vulncheck.com/advisories/gitpython-before-local-file-content-disclosure-via-gitmodules
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-7833-fr7j-v32q

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

## Source
元記事: [CVE-2026-78675 — gitpython](https://osv.dev/vulnerability/PYSEC-2026-3785) — published 2026-08-25T02:16:51Z
