GitPython versions from 2.9.2 up to but not including 4.1.0 contain vulnerabilities due to unguarded forwarding of git command options in the IndexFile.checkout() and TagReference.create() methods. The IndexFile.checkout() method allows arbitrary file overwrite outside the repository via the --prefix option in git checkout-index, enabling an attacker controlling repository content to overwrite files at arbitrary filesystem locations. The TagReference.create() method allows arbitrary file read through the -F/--file option in git tag, exposing file contents to the caller. Both issues arise because these methods forward **kwargs to git commands without proper safety checks. A fix is available in GitPython version 4.1.0.