Information disclosure in GitPython - #VU152985
Published: September 30, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to improper neutralization of environment-variable expansion in Repo._clone() when initializing submodules from a cloned repository with a crafted .gitmodules submodule name. A remote attacker can cause environment variables to be expanded in the separate_git_dir path to disclose sensitive information.
User interaction is required to clone the malicious repository and initialize its submodules.