CVE-2026-110855

GitPython before 3.2.0 Environment Variable Disclosure via .gitmodules Submodule Name

Published Oct 14, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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
Type Values Removed Values Added
First Time appeared Gitpython-developers
Gitpython-developers gitpython
Vendors & Products Gitpython-developers
Gitpython-developers gitpython
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-497

    Exposure of Sensitive System Information to an Unauthorized Control Sphere

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 15, 2026, 6:15 PM
Reserved
Oct 14, 2026, 10:16 PM
Status
Awaiting Analysis
Published
Oct 14, 2026, 11:17 PM
Modified
Oct 16, 2026, 6:14 PM
Severity
Moderate
Public date
Oct 14, 2026, 10:52 PM