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.
Published: 2026-08-13
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Thu, 13 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
First Time appeared Gitpython-developers
Gitpython-developers gitpython
Vendors & Products Gitpython-developers
Gitpython-developers gitpython

Thu, 13 Aug 2026 11:45:00 +0000

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'}


Subscriptions

Gitpython-developers Gitpython
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-13T11:28:24.833Z

Reserved: 2026-08-13T11:17:25.160Z

Link: CVE-2026-73625

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-13T12:17:27.753

Modified: 2026-08-13T12:17:27.753

Link: CVE-2026-73625

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T13:15:04Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')