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.
Published: 2026-10-14
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Information Disclosure
Action: Apply Patch
AI Analysis

Impact

GitPython prior to 3.2.0 has an information disclosure flaw that allows a malicious repository to expand environment variables when cloning. The vulnerability arises because separate_git_dir in Repo._clone() omits the expand_vars=False flag when calling Git.polish_url(). An attacker can craft a .gitmodules file with a submodule name containing variable syntax, causing the clone and subsequent submodule_update to reveal secrets in the .git/modules directory names and in DEBUG logs. This flaw directly compromises confidentiality, as sensitive environment data can be read by anyone able to trigger a clone operation.

Affected Systems

The flaw affects the GitPython project (gitpython-developers). All releases prior to 3.2.0 are impacted. Users of GitPython version 3.2.0 or later are not affected.

Risk and Exploitability

The vulnerability carries a CVSS score of 7.1, indicating a high severity. The EPSS score is not available, so the current likelihood of exploitation cannot be quantified, but the flaw has been documented publicly and can be trivially triggered by hosting a crafted repository or cloning one from an untrusted source. Because the issue is not listed in the CISA KEV catalog, there is currently no evidence of widespread exploitation. An attacker with the ability to control the repository can obtain confidential data through the exposed environment variables, but the vulnerability does not allow remote code execution or direct user interaction beyond the initial clone.

Generated by OpenCVE AI on October 15, 2026 at 12:06 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to GitPython 3.2.0 or later.
  • Disable or suppress DEBUG logging during clone operations to prevent secrets from appearing in logs.
  • Restrict cloning to trusted repositories and audit .gitmodules files for variable syntax before cloning.

Generated by OpenCVE AI on October 15, 2026 at 12:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4872-1 python-git security update
History

Sat, 17 Oct 2026 14:15:00 +0000

Type Values Removed Values Added
First Time appeared Gitpython-developers
Gitpython-developers gitpython
Vendors & Products Gitpython-developers
Gitpython-developers gitpython

Thu, 15 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 15 Oct 2026 13:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-497
References
Metrics threat_severity

None

threat_severity

Moderate


Wed, 14 Oct 2026 23:00:00 +0000

Type Values Removed Values Added
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.
Title GitPython before 3.2.0 Environment Variable Disclosure via .gitmodules Submodule Name
First Time appeared Gitpython Project
Gitpython Project gitpython
Weaknesses CWE-200
CPEs cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:*:*:*
Vendors & Products Gitpython Project
Gitpython Project gitpython
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Gitpython-developers Gitpython
Gitpython Project Gitpython
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-15T18:15:45.736Z

Reserved: 2026-10-14T22:16:22.734Z

Link: CVE-2026-110855

cve-icon Vulnrichment

Updated: 2026-10-15T18:15:21.160Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-14T23:17:26.623

Modified: 2026-10-16T18:14:51.460

Link: CVE-2026-110855

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-14T22:52:34Z

Links: CVE-2026-110855 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-17T14:00:09Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-497

    Exposure of Sensitive System Information to an Unauthorized Control Sphere