Information disclosure in GitPython - CVE-2026-73622

 

Information disclosure in GitPython - CVE-2026-73622

Published: July 31, 2026 / Updated: September 14, 2026


Vulnerability identifier: #VU140582
CSH Severity: Medium
CVSS v4: 8.7 [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]
CVE-ID: CVE-2026-73622
CWE-ID: CWE-200
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to exposure of sensitive information in Repo.create_remote(), Remote.add(), and Submodule.add() when processing an attacker-controlled repository URL. A remote attacker can supply a URL containing environment-variable references to disclose sensitive information.

The supplied variable references are expanded server-side, stored in .git/config, and the resulting secret-bearing URL is transmitted on the next fetch, pull, or remote update. In the Submodule.add() path, the expanded URL is also written to .gitmodules.


Affected software

GitPython
openEuler
python-GitPython
python-GitPython-help
python3-GitPython

How to mitigate CVE-2026-73622

Install security update from vendor's website.

GitPython - update to 3.1.55
python-GitPython - update to 3.1.59-1
python-GitPython-help - update to 3.1.59-1
python3-GitPython - update to 3.1.59-1

External References

Related Security Bulletins