Path traversal in GitPython - CVE-2026-78677
Published: August 26, 2026
Vulnerability details
The vulnerability allows a remote attacker to create an arbitrary git directory outside the intended destination.
The vulnerability exists due to improper limitation of a pathname to a restricted directory in Repo.clone_from()/Repo.clone() option handling when forwarding a caller-controlled separate_git_dir argument to git clone. A remote attacker can supply a specially crafted separate_git_dir path to create an arbitrary git directory outside the intended destination.
Exploitation requires a host application to pass attacker-influenced clone options to the API without rejecting the separate_git_dir argument.