---
schema_version: '1.0'
id: security-20260903-2a0d4b
title: CVE-2026-78678 — gitpython
url: https://osv.dev/vulnerability/PYSEC-2026-3788
url_hash: 2a0d4bc0f015840d284168a4276777b2b4d1d952355a11174446d2026f8f373a
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-3788
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-78678
- PYSEC-2026-3788
- severity:CVSS:4.0/AV:N/AC:L/AT:N/PR:L/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-25T02:16:52Z'
fetched_at: '2026-09-03T11:30:56.222675Z'
updated_at: '2026-09-03T14:35:28Z'
status: published
content_hash: 0cb4e7ca3af0250d204bebc76e993a0c0e855d321096eb26ce954ff27cb3d08a
content_changed_at: null
license_note: full
summary: GitPython versions before 3.1.59 contain an incomplete denylist in the unsafe_git_revision_options
  guard that omits --contents and -S options, allowing attackers to read arbitrary
  files by passing these options to Repo.blame(). Attackers can supply revision values
  like --contents
summary_source: rss
summary_en: GitPython versions before 3.1.59 contain an incomplete denylist in the
  unsafe_git_revision_options guard that omits --contents and -S options, allowing
  attackers to read arbitrary files by passing these options to Repo.blame(). Attackers
  can supply revision values like --contents
summary_omitted_reason: null
redistribution: true
keywords_en:
- cve
- CVE-2026-28684
- CVE-2026-78678
- gitpython
- library vulnerability
- PyPI
- PYSEC-2026-3788
- 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:33Z'
---

# CVE-2026-78678 — gitpython

## TL;DR
GitPython versions before 3.1.59 contain an incomplete denylist in the unsafe_git_revision_options guard that omits --contents and -S options, allowing attackers to read arbitrary files by passing these options to Repo.blame(). Attackers can supply revision values like --contents

## Key Points
- cve / CVE-2026-78678 / PYSEC-2026-3788 / severity:CVSS:4.0/AV:N/AC:L/AT:N/PR:L/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:L/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-3788 (CVE-2026-78678)

**Details:**
GitPython versions before 3.1.59 contain an incomplete denylist in the unsafe_git_revision_options guard that omits --contents and -S options, allowing attackers to read arbitrary files by passing these options to Repo.blame(). Attackers can supply revision values like --contents=/etc/passwd to leak file contents through the blame result returned to the caller.

**References:**
- https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-repo-blame
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-5xxx-qhh7-9287

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

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