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

 

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

Published: July 22, 2026


Vulnerability identifier: #VU139085
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/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-88
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: gitpython-developers
Affected software:
GitPython

Detailed vulnerability description

The vulnerability allows a remote attacker to overwrite arbitrary files.

The vulnerability exists due to improper neutralization of argument delimiters in Repo.iter_commits() and Repo.blame() when placing a caller-supplied rev value before the end-of-options separator. A remote attacker can pass a crafted revision value such as a leading-dash option to overwrite arbitrary files.

The target file may be opened and truncated before Git validates the revision value.


Remediation

Install security update from vendor's website.

Sources