External Control of File Name or Path in GitPython - #VU140587

 

External Control of File Name or Path in GitPython - #VU140587

Published: July 31, 2026


Vulnerability identifier: #VU140587
CSH Severity: Medium
CVSS v4.0: 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/E:U/U:Green
CVE-ID: N/A
CWE-ID: CWE-73
Exploitation vector: Remote access
Exploit availability: No public exploit available
Affected software:
GitPython

Detailed vulnerability description

The vulnerability allows a remote user to overwrite arbitrary files.

The vulnerability exists due to external control of file name or path in IndexFile.checkout() when forwarding user-supplied git options to git checkout-index. A remote user can supply a crafted prefix option to overwrite arbitrary files.

The written content is taken from repository-controlled tracked files, and the overwrite can occur outside the working tree.


Remediation

Install security update from vendor's website.

Sources