Description (CNA)
GitPython before 3.2.0 contains an information disclosure vulnerability that allows malicious repositories to expand environment variables via separate_git_dir in Repo._clone(), which omits expand_vars=False when calling Git.polish_url(). Attackers can craft a .gitmodules submodule name containing variable syntax so that clone plus submodule_update exposes secrets in .git/modules directory names and DEBUG logs.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| gitpython-developers / GitPython | affected 0 before 3.2.0; unaffected 3.2.0 |
CWE
CWE-200
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-fx3j-rwgx-fr94
- https://www.vulncheck.com/advisories/gitpython-before-3.2.0-environment-variable-disclosure-via-gitmodules-submodule-name
ADP enrichment
No English description supplied.