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

High 8.7 Published Updated

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.

PackageAffectedFixed in
gitpython PyPIAll versions3.1.55
gitpython PyPIAll versions3.1.55
GitPython PyPIAll versions3.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.

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.

Is CVE-2026-73622 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free