Improper Neutralization of Argument Delimiters in a Command in GitPython - #VU140971

 

Improper Neutralization of Argument Delimiters in a Command in GitPython - #VU140971

Published: August 5, 2026


Vulnerability identifier: #VU140971
CSH Severity: Low
CVSS v4: 7.7 [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]
CVE-ID: N/A
CWE-ID: CWE-88
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to improper neutralization of argument delimiters in Repo.init when forwarding user-supplied git options to git init. A remote user can supply a crafted template option to plant a hook that executes on the next git operation to execute arbitrary code.

Exploitation requires the application to pass an attacker-controlled template argument and for an executable hook directory to be staged at a known path.


Affected software

GitPython

Remediation

Install security update from vendor's website.

GitPython - update to 3.1.58

External References

Related Security Bulletins