CVE-2026-73622 GitPython before 3.1.55 Environment Variable Exfiltration via Remote.add()
Attackers can exfiltrate environment variables by crafting malicious URLs in GitPython, leading to secret disclosure during fetch or pull operations.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-73622?
CVE-2026-73622 is a high-severity vulnerability in gitpython-developers GitPython, published on 13 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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-200
Which versions are affected by CVE-2026-73622?
3 open source packages ship an affected version, including gitpython and GitPython. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gitpython PyPI | All versions | 3.1.55 |
gitpython PyPI | All versions | 3.1.55 |
GitPython PyPI | All versions | 3.1.55 |
Products include Gitpython Project Gitpython.
How do I fix CVE-2026-73622?
Upgrade gitpython to 3.1.55 or later.
Is CVE-2026-73622 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-73622 exists.
Other vulnerabilities in gitpython-developers GitPython
- CVE-2023-40267 GitPython vulnerable to remote code execution due to insufficient sanitization of input arguments
- CVE-2026-78676 GitPython before 3.1.59 Remote Code Execution via Config Injection
- CVE-2026-67324 GitPython 3.1.50 Authentication Bypass via Joined Short Options
- CVE-2026-42215 GitPython: Command injection via Git options bypass
- CVE-2026-87817 GitPython before 3.1.60 Remote Code Execution via Git Directory Impersonation
Sources
Also known as DEBIAN-CVE-2026-73622, ECHO-9a28-8a09-4e5a, ECHO-d7e2-1524-94cc, GHSA-94p4-4cq8-9g67, GHSA-9rmj-fh79-gf6w, MINI-35x8-7fwf-hpm6 and 8 more.