CVE-2026-73625

GitPython before 3.1.54 Remote Code Execution via kwarg value smuggling

Published Aug 13, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
GitPython versions before 3.1.54 contain a remote code execution vulnerability in the check_unsafe_options guard that can be bypassed by smuggling git options inside single-character kwarg values. Attackers can supply crafted option dictionaries to clone_from, fetch, pull, push, ls_remote, iter_commits, blame, or archive methods to execute arbitrary OS commands via the --upload-pack parameter.

Analysis

AI-generated

Technical impact

GitPython versions before 3.1.54 contain a remote code execution vulnerability in the check_unsafe_options guard. By smuggling git options into single‑character keyword arguments, an attacker can supply crafted option dictionaries to methods such as clone_from, fetch, pull, push, ls_remote, iter_commits, blame, or archive. This bypass allows the attacker to exercise the --upload-pack parameter and execute arbitrary OS commands, exposing confidentiality and integrity of the system.

Affected Systems

The vulnerability affects the GitPython library maintained by the GitPython developers. Any Python project that depends on a pre‑3.1.54 release of GitPython is at risk. The impact depends on the privileges of the process executing the library, as the vulnerability allows remote execution of OS commands through the library's API. No specific operating system or environment is enumerated, so the scope is determined by how the library is used in the application.

Risk and Exploitability

The CVSS score of 8.7 classifies this flaw as high severity. EPSS data is not available, so current exploitation likelihood is unknown. The flaw is not listed in the CISA KEV catalog. Based on the description, the likely attack vector involves an attacker who can control the arguments passed to GitPython functions in a running application. If the application runs with elevated privileges, the attacker could achieve full system compromise. Although the EPSS score is not disclosed, the nature of the flaw—arbitrary shell command execution—makes it a highly valuable target for malicious actors.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade GitPython to version 3.1.54 or newer using pip (e.g., pip install --upgrade gitpython).
  • If an upgrade cannot be performed immediately, validate or sanitize all keyword arguments passed to GitPython functions to prevent unintended shell option injection.
  • Run the application with the least privilege necessary and restrict the ability of the process to execute arbitrary shell commands.

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
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, '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 versions before 3.1.54 contain a remote code execution vulnerability in the check_unsafe_options guard that can be bypassed by smuggling git options inside single-character kwarg values. Attackers can supply crafted option dictionaries to clone_from, fetch, pull, push, ls_remote, iter_commits, blame, or archive methods to execute arbitrary OS commands via the --upload-pack parameter.
Title GitPython before 3.1.54 Remote Code Execution via kwarg value smuggling
Weaknesses CWE-78
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command 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