What’s Vulnerable › Vulnerabilities

CVE-2026-73620: GitPython before 3.1.57 Arbitrary File Overwrite and Read

Description

GitPython before 3.1.57 fails to guard git option forwarding in IndexFile.checkout() and TagReference.create(), allowing attackers to pass unsafe options via kwargs. Attackers can use --prefix to overwrite arbitrary files with repository content or -F to read arbitrary files returned in-band.

Affected products

How to fix

Upgrade to a fixed version: gitpython-developers GitPython 3.1.57. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-73620 or the next vulnerability affects your stack