CVE-2026-73619

GitPython before 3.1.57 Arbitrary File Read via Repo.archive()

Published Aug 13, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
GitPython before 3.1.57 contains an incomplete denylist in the unsafe_git_archive_options guard that omits --add-file and --add-virtual-file options. Attackers can supply these options to Repo.archive() to read arbitrary files from the filesystem and include them in the returned archive.

Analysis

AI-generated

Technical impact

GitPython before 3.1.57 contains an incomplete denylist that allows the unsafe_git_archive_options guard to accept the --add-file and --add-virtual-file options. A malicious user who can influence the arguments passed to Repo.archive() can cause the function to read any file on the filesystem and include it in the generated archive, thereby compromising confidentiality. The weakness is a directory traversal (CWE-22) and an arbitrary file read flaw (CWE-73).

Affected Systems

The vulnerability affects the GitPython library developed by gitpython‑developers. Any code that imports gitpython and calls git.Repo.archive() before the 3.1.57 release is vulnerable. Specifically, systems running GitPython versions below 3.1.57, such as 3.1.56 or earlier, are impacted.

Risk and Exploitability

The CVSS score of 7.1 indicates a high severity, while the EPSS score of < 1% suggests a low current exploitation probability and the vulnerability is not listed in CISA KEV. An attacker who can influence the parameters passed to Repo.archive() could read arbitrary files from the host filesystem and include them in the generated archive. The vulnerability requires code that invokes Repo.archive() with the disallowed --add-file or --add-virtual-file options.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the GitPython library to version 3.1.57 or later, where the denylist has been corrected.
  • Review any custom usage of Repo.archive() and verify that no disallowed options are passed; remove or sanitize any input that may supply '--add-file' or '--add-virtual-file'.
  • If an upgrade is not immediately possible, disable the use of Repo.archive() in insecure contexts or replace it with a safer archival method that does not expose file read capabilities.

Generated by OpenCVE AI on August 15, 2026 at 01:53 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
Metrics ssvc

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

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
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.57 contains an incomplete denylist in the unsafe_git_archive_options guard that omits --add-file and --add-virtual-file options. Attackers can supply these options to Repo.archive() to read arbitrary files from the filesystem and include them in the returned archive.
Title GitPython before 3.1.57 Arbitrary File Read via Repo.archive()
Weaknesses CWE-73
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:24 PM
Reserved
Aug 13, 2026, 11:16 AM
Status
Analyzed
Published
Aug 13, 2026, 12:17 PM
Modified
Oct 24, 2026, 3:10 PM
Severity
Moderate
Public date
Aug 13, 2026, 11:28 AM