Information disclosure in GitPython - #VU152985

 

Information disclosure in GitPython - #VU152985

Published: September 30, 2026


Vulnerability identifier: #VU152985
CSH Severity: Medium
CVSS v4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-200
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

GitPython

Remediation

Install security update from vendor's website.

GitPython - update to 3.2.0

External References

Related Security Bulletins