---
id: CVE-2026-110855
title: >-
  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()…
summary: >-
  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()…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'
cwe:
  - CWE-200
published: '2026-10-14'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T23:17:26.623'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-110855'
references:
  - url: >-
      https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-fx3j-rwgx-fr94
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/gitpython-before-3.2.0-environment-variable-disclosure-via-gitmodules-submodule-name
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-10-15T00:02:07.180Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
