7.5High

CVE-2026-73622GitPython before 3.1.55 Environment Variable Exfiltration via Remote.add()

gitpython-developers GitPython Published: (3 months ago)

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.

Weakness (CWE): CWE-200

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
gitpython project gitpython < 3.1.55
gitpython-developers GitPython < 3.1.55, fixed 3.1.55

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:* < 3.1.55