Description
GitPython 3.1.50 fails to recognize joined short-option forms such as -u<value> (the short form of --upload-pack=<value>) when enforcing its default unsafe-option gate. When an application passes attacker-influenced clone options into Repo.clone_from(..., multi_options=..., allow_unsafe_options=False), an attacker can supply -u<helper> to bypass the gate that blocks --upload-pack/-u, causing Git to execute the specified helper command during clone. Fixed in 3.1.51.
Published: 2026-08-01
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

GitPython 3.1.50 does not correctly reject joined short-option forms such as -u<value> that map to --upload-pack=<value> when the default unsafe-option gate is enabled. This oversight allows an attacker to inject a command by passing -u<helper> to Repo.clone_from with allow_unsafe_options set to False. The injected helper is executed by Git during the clone, enabling arbitrary code execution. The vulnerability is a command injection flaw (CWE-78) and can compromise confidentiality, integrity, and availability of the system if the affected application processes malicious clone parameters.

Affected Systems

The flaw affects the GitPython library maintained by gitpython‑developers, specifically all releases up to and including version 3.1.50. The vendor identified a fix in release 3.1.51.

Risk and Exploitability

The CVSS score of 9.3 indicates high severity, but the EPSS score is not available, and the vulnerability is not currently listed in CISA’s KEV catalog. Exploitation requires that the attacker can influence the clone options passed to Repo.clone_from, which is common in applications that accept user input for repository URLs or parameters. Once the attacker controls these options, the bypass can be triggered and the specified helper command will execute with the process’s privileges. The attack vector is therefore application‑level input injection via the clone API.

Generated by OpenCVE AI on August 2, 2026 at 03:00 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade GitPython to version 3.1.51 or later to obtain the official fix.
  • If upgrading is temporarily infeasible, review any code that supplies options to Repo.clone_from and eliminate or tightly validate any short-option syntax such as -u<value> that could be supplied by untrusted sources.
  • Enter a brief period of remediation by running clone operations in a restricted execution environment, such as a container or chroot, to limit the impact of any potential helper command execution until a patch can be applied.

Generated by OpenCVE AI on August 2, 2026 at 03:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 02 Aug 2026 21:00:00 +0000

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

Sat, 01 Aug 2026 12:45:00 +0000

Type Values Removed Values Added
Description GitPython 3.1.50 fails to recognize joined short-option forms such as -u<value> (the short form of --upload-pack=<value>) when enforcing its default unsafe-option gate. When an application passes attacker-influenced clone options into Repo.clone_from(..., multi_options=..., allow_unsafe_options=False), an attacker can supply -u<helper> to bypass the gate that blocks --upload-pack/-u, causing Git to execute the specified helper command during clone. Fixed in 3.1.51.
Title GitPython 3.1.50 Authentication Bypass via Joined Short Options
Weaknesses CWE-78
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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-01T12:22:18.154Z

Reserved: 2026-07-29T13:07:21.184Z

Link: CVE-2026-67324

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T20:31:30Z

Weaknesses
  • CWE-78

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