CVE-2026-78679

GitPython before 3.1.59 Arbitrary File Read via TagReference.create

Published Aug 25, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
GitPython before 3.1.59 contains an arbitrary file read vulnerability in TagReference.create() where a positional reference parameter bypasses the unsafe option guard. Attackers can supply a reference value like --file=<path> to read arbitrary files, with contents returned in the annotated tag message.

Analysis

AI-generated

Technical impact

The vulnerability resides within GitPython’s TagReference.create() routine, where a positional reference argument bypasses the unsafe guard. An attacker that can control the tag creation process can supply a reference value such as --file=<path> to cause the library to read an arbitrary file from the host filesystem. The contents of that file are then returned in the annotation message of the created tag, exposing potentially sensitive data.

Affected Systems

Any installation of GitPython older than version 3.1.59 is affected, including the version ships from the gitpython-developers project. Users running these versions should verify the current version and upgrade as soon as possible.

Risk and Exploitability

With a CVSS score of 7.1 the vulnerability is considered high severity and is not listed in the CISA KEV catalog. The EPSS score is < 1%, indicating a very low probability of exploitation in the wild, but the ability to read arbitrary local files suggests that an attacker with code execution or repository manipulation privileges could leverage this flaw. If uncontrolled code can create tags, the risk is heightened to local or potentially remote attack depending on the deployment model.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update GitPython to version 3.1.59 or later, which removes the unsafe guard bypass in TagReference.create()
  • Limit GitPython’s execution to trusted repositories and restrict repository write permissions to avoid malicious tag creation
  • Apply input validation or sandboxing around the TagReference.create() call to prevent arbitrary reference values from being interpreted

Generated by OpenCVE AI on September 10, 2026 at 13:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4872-1 python-git security update
Github GHSA Github GHSA GHSA-3wxw-xv34-2frg GitPython: TagReference.create positional reference bypasses kwargs-only --file guard, enabling arbitrary file read (incomplete fix of 3af0c251)
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, '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 before 3.1.59 contains an arbitrary file read vulnerability in TagReference.create() where a positional reference parameter bypasses the unsafe option guard. Attackers can supply a reference value like --file=<path> to read arbitrary files, with contents returned in the annotated tag message.
Title GitPython before 3.1.59 Arbitrary File Read via TagReference.create
First Time appeared Gitpython Project
Gitpython Project gitpython
Weaknesses CWE-73
CPEs cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:*:*:*
Vendors & Products Gitpython Project
Gitpython Project gitpython
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-73

    External Control of File Name or Path

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 3:25 PM
Reserved
Aug 25, 2026, 1:17 AM
Status
Awaiting Analysis
Published
Aug 25, 2026, 2:16 AM
Modified
Oct 12, 2026, 3:10 PM
Severity
Moderate
Public date
Aug 25, 2026, 1:30 AM