External Control of File Name or Path in GitPython - #VU140587
Published: July 31, 2026
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.