CVE-2026-73624

GitPython before 3.1.54 Arbitrary File Overwrite via diff

Published Aug 13, 2026 CVSS 4.0 · 7.2 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

GitPython versions before 3.1.54 contain an arbitrary file overwrite flaw in the Diffable.diff method. The vulnerability arises because the method does not validate git options supplied through kwargs, allowing an attacker to pass a --output parameter via the diff arguments. The attacker can then cause patch content to be written to an attacker‑chosen file path with the privileges of the running process, potentially leading to tampering of configuration files or insertion of malicious code.

Affected Systems

Issues affect the GitPython library distributed by the gitpython‑developers team. Versions prior to 3.1.54 are vulnerable. Upgrading to 3.1.54 or later is required.

Risk and Exploitability

The CVSS score of 7.2 indicates a high severity. EPSS is not available, and the vulnerability is not listed in KEV. Attackers would need to run code that invokes Diffable.diff with crafted arguments. This implies that the vulnerability is exploitable in environments where a Python application or service using GitPython processes untrusted input or repository data. The attack can result in arbitrary file modification and, if the process runs with elevated privileges, could lead to further compromise. Based on the description, the likely attack vector is an attacker executing code that provides malicious diff arguments to Diffable.diff, allowing arbitrary file overwrite.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade GitPython to 3.1.54 or newer.
  • If upgrading is not immediately possible, avoid passing untrusted input to Diffable.diff and remove the --output parameter from kwarg.
  • Review and restrict the file system permissions of the process that uses GitPython to limit write access to critical directories.

Generated by OpenCVE AI on August 13, 2026 at 13:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4872-1 python-git security update
History
Type Values Removed Values Added
First Time appeared Gitpython Project
Gitpython Project gitpython
CPEs cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*
Vendors & Products Gitpython Project
Gitpython Project gitpython
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gitpython-developers
Gitpython-developers gitpython
Vendors & Products Gitpython-developers
Gitpython-developers gitpython
Type Values Removed Values Added
Description 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.
Title GitPython before 3.1.54 Arbitrary File Overwrite via diff
Weaknesses CWE-88
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H'}

cvssV4_0

{'score': 7.2, 'vector': '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'}

Weaknesses
  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 3:24 PM
Reserved
Aug 13, 2026, 11:17 AM
Status
Analyzed
Published
Aug 13, 2026, 12:17 PM
Modified
Oct 24, 2026, 3:10 PM
Severity
Important
Public date
Aug 13, 2026, 11:28 AM