What’s Vulnerable › Vulnerabilities
CVE-2026-110855: GitPython before 3.2.0 Environment Variable Disclosure via .gitmodules Submodule Name
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-14 · updated 2026-10-16
- Weakness: CWE-200
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.
Affected products
- Pypi Gitpython: before 3.2.0; 0.1.7, 0.2.0-beta1, 0.3.0-beta1, 0.3.0-beta2, 0.3.1-beta2, 0.3.2 (+109) — fixed in 3.2.0
- gitpython-developers GitPython: before 3.2.0 — fixed in 3.2.0
How to fix
Upgrade to a fixed version: Pypi Gitpython 3.2.0; gitpython-developers GitPython 3.2.0. Check the vendor advisory for mitigations.
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
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-fx3j-rwgx-fr94
Get alerted when CVE-2026-110855 or the next vulnerability affects your stack