---
schema_version: '1.0'
id: security-20260930-911a10
title: CVE-2026-73624 — gitpython
url: https://osv.dev/vulnerability/PYSEC-2026-3995
url_hash: 911a102916eb9460ac16cfb4d817b4364379aa30a8442cae2ee50ded378d6118
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-3995
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-73624
- PYSEC-2026-3995
- severity:CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/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-30T03:55:36.096214Z'
updated_at: '2026-09-30T04:20:39Z'
status: published
content_hash: 910aff04e540c6dfe7f7d5cb18f2bf0b533f4754b8108d8d903752ad6f5aac8d
content_changed_at: null
license_note: full
summary: GitPython versions before 3.1.54 contain an arbitrary file overwrite vulnerability
  in the Diffable.diff method that fails to validate git options passed through kwargs.
  Attackers can supply the --output argument via the other parameter or output kwarg
  to write patch content to at
summary_source: rss
summary_en: GitPython versions before 3.1.54 contain an arbitrary file overwrite vulnerability
  in the Diffable.diff method that fails to validate git options passed through kwargs.
  Attackers can supply the --output argument via the other parameter or output kwarg
  to write patch content to at
summary_omitted_reason: null
redistribution: true
keywords_en:
- cve
- CVE-2026-59980
- CVE-2026-73624
- gitpython
- library vulnerability
- PyPI
- PYSEC-2026-3995
- software security
entities_en:
- name: CVE-2026-59980
  type: concept
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE-2026-59980
  type: concept
key_facts: []
related: []
related_auto: []
computed_at: '2026-09-30T04:20:28Z'
---

# CVE-2026-73624 — gitpython

## TL;DR
GitPython versions before 3.1.54 contain an arbitrary file overwrite vulnerability in the Diffable.diff method that fails to validate git options passed through kwargs. Attackers can supply the --output argument via the other parameter or output kwarg to write patch content to at

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

**Details:**
GitPython versions before 3.1.54 contain an arbitrary file overwrite vulnerability in the Diffable.diff method that fails to validate git options passed through kwargs. Attackers can supply the --output argument via the other parameter or output kwarg to write patch content to attacker-chosen file paths at process privilege level.

**References:**
- https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-overwrite-via-diff
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-fjr4-x663-mwxc

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

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