External Control of File Name or Path in GitPython - CVE-2026-73620

 

External Control of File Name or Path in GitPython - CVE-2026-73620

Published: July 31, 2026 / Updated: September 14, 2026


Vulnerability identifier: #VU140587
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: CVE-2026-73620
CWE-ID: CWE-73
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 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.


Affected software

GitPython
openEuler
python-GitPython
python-GitPython-help
python3-GitPython

How to mitigate CVE-2026-73620

Install security update from vendor's website.

GitPython - update to 3.1.57
python-GitPython - update to 3.1.59-1
python-GitPython-help - update to 3.1.59-1
python3-GitPython - update to 3.1.59-1

External References

Related Security Bulletins