Incomplete List of Disallowed Inputs in GitPython - #VU139090

 

Incomplete List of Disallowed Inputs in GitPython - #VU139090

Published: July 22, 2026


Vulnerability identifier: #VU139090
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: N/A
CWE-ID: CWE-184
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: gitpython-developers
Affected software:
GitPython

Detailed vulnerability description

The vulnerability allows a remote user to execute arbitrary commands.

The vulnerability exists due to an incomplete list of disallowed inputs in unsafe_git_clone_options in base.py when processing clone options. A remote user can supply the --template option pointing to a directory containing a crafted hook to execute arbitrary commands.

Exploitation requires an attacker-readable directory containing an executable hook, and the post-checkout hook is executed during clone.


Remediation

Install security update from vendor's website.

Sources