GitPython before 3.2.0 Environment Variable Disclosure via .gitmodules Submodule Name
gitpython-developers GitPython
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| gitpython PyPI |
|
|
Original description
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.
From the CVE record · VulnCheck
References
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-fx3j-rwgx-fr94Exploit
- vulncheck.com/advisories/gitpython-before-3.2.0-environment-variable-disclosure-via-gitmodules-submodule-name
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/110xxx/CVE-2026-110855.json
- nvd.nist.gov/vuln/detail/CVE-2026-110855
- github.com/gitpython-developers/GitPython/pull/2255
- github.com/gitpython-developers/GitPython/commit/9349ff58ee00c9fb14d515c8e693f33b2144b238
- github.com/gitpython-developers/GitPython
- github.com/gitpython-developers/GitPython/releases/tag/3.2.0