CVE-2026-73622

GitPython before 3.1.55 Environment Variable Exfiltration via Remote.add()

Published Aug 13, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
GitPython before 3.1.55 fails to disable environment variable expansion in Remote.create() and Submodule.add() URL handling, allowing attackers to exfiltrate secrets by supplying URLs containing variable references. Attackers can craft URLs with environment variable tokens that are expanded into .git/config and .gitmodules, then transmitted to attacker-controlled hosts during fetch or pull operations.

Analysis

AI-generated

Technical impact

GitPython versions older than 3.1.55 allow attackers to inject URLs that contain environment variable references during Remote.create() and Submodule.add() calls. The library incorrectly expands these variables into .git/config and .gitmodules files, which are then transmitted to external hosts when a fetch or pull operation occurs. This flaw enables a remote attacker to harvest sensitive configuration data that the application stores in environment variables, resulting in a confidentiality breach based on CWE‑200. Additionally, it involves improper handling of environment variables during configuration processing, which is mapped to CWE‑914.

Affected Systems

The vulnerability affects the GitPython library maintained by the gitpython‑developers. All releases before 3.1.55 are impacted. Users embedding GitPython in applications or services that perform remote Git operations with potentially untrusted URLs are at risk.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity. Because the flaw requires the attacker to supply a malicious URL that triggers a fetch or pull, the attack vector is remote and depends on an active network connection that performs a Git operation. The EPSS score of 0.00282 (less than 1%) indicates that the likelihood of exploitation is very low. The vulnerability is not listed in the CISA KEV catalog, suggesting that there may not yet be widespread exploitation, but the high CVSS rating warrants urgent action. An attacker could submit a crafted URL to a service that pulls from a repository, causing the service to expand environment variables and expose internal secrets to an external host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to GitPython version 3.1.55 or newer to disable environment variable expansion during Remote.add() and Submodule.add() operations.
  • If upgrading is not immediately possible, configure your environment to prevent unintended variable expansion in GitPython by ensuring that the environment used by the process does not contain sensitive variables that can be interpolated by Git.
  • Audit existing .git/config and .gitmodules files for unexpected variable references and review remote URLs to confirm they originate from trusted sources.

Generated by OpenCVE AI on August 15, 2026 at 02:07 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 Project
Gitpython Project gitpython
CPEs cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*
Vendors & Products Gitpython Project
Gitpython Project gitpython
Type Values Removed Values Added
Metrics ssvc

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

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
Description GitPython before 3.1.55 fails to disable environment variable expansion in Remote.create() and Submodule.add() URL handling, allowing attackers to exfiltrate secrets by supplying URLs containing variable references. Attackers can craft URLs with environment variable tokens that are expanded into .git/config and .gitmodules, then transmitted to attacker-controlled hosts during fetch or pull operations.
Title GitPython before 3.1.55 Environment Variable Exfiltration via Remote.add()
Weaknesses CWE-200
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-914

    Improper Control of Dynamically-Identified Variables

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 3:24 PM
Reserved
Aug 13, 2026, 11:17 AM
Status
Analyzed
Published
Aug 13, 2026, 12:17 PM
Modified
Oct 24, 2026, 3:10 PM
Severity
Important
Public date
Aug 13, 2026, 11:28 AM