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

 

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

Published: August 5, 2026


Vulnerability identifier: #VU140972
CSH Severity: Medium
CVSS v4: 7.2 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/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 overwrite arbitrary files.

The vulnerability exists due to improper neutralization of argument delimiters in a command in IndexFile.from_tree, IndexFile.reset, and IndexFile.merge_tree when appending caller-influenced treeish arguments to git read-tree. A remote user can supply a specially crafted treeish value to overwrite arbitrary files.

The overwritten content is constrained to a valid git index blob rather than attacker-chosen file contents.


Affected software

GitPython

Remediation

Install security update from vendor's website.

GitPython - update to 3.1.58

External References

Related Security Bulletins