CVE-2026-110855: GitPython before 3.2.0 Environment Variable Disclosure via .gitmodules Submodule Name

Published Oct 14, 2026
·
Updated

GitPython before 3.2.0 contains an information disclosure vulnerability that allows malicious repositories to expand environment variables via separategitdir in Repo.clone(), which omits expandvars=False when calling Git.polishurl(). Attackers can craft a .gitmodules submodule name containing variable syntax so that clone plus submoduleupdate exposes secrets in .git/modules directory names and DEBUG logs.

Affected Software

1 affected component
pypi/GitPython<3.2.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade GitPython to a version that resolves this vulnerability.

    Fixed in 3.2.0

Event History

Oct 14, 2026
CVE Published
via MITRE·10:52 PM
Data Sourced
via MITRE·10:52 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What conditions are required for exploitation?

An attacker needs to convince a user or automated process to clone a malicious repository and run submodule_update. The malicious repository must contain a .gitmodules submodule name with environment-variable syntax.

2

What information can be exposed?

Environment-variable values can be expanded into paths under .git/modules. Those values may also be exposed through DEBUG logs.

3

Are installations using the affected package version range exposed by default?

Exposure requires cloning an attacker-controlled repository and processing its submodules; the provided information does not indicate that ordinary cloning without submodule_update triggers disclosure.

4

How can I check whether an environment may have been affected?

Review repositories cloned with GitPython for suspicious variable syntax in .gitmodules submodule names, and inspect .git/modules directory names and DEBUG logs for expanded secret values.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203