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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 3.1.55 (CNA); fix release not confirmed
- Status: published
- Published: 2026-08-13 · Modified: 2026-10-08
- Aliases: GHSA-94p4-4cq8-9g67, PYSEC-2026-3951, UBUNTU-CVE-2026-73622, DEBIAN-CVE-2026-73622
- Record: https://cvemate.com/vulnerability/CVE-2026-73622 · JSON: https://cvemate.com/vulnerability/CVE-2026-73622/json

## Description

```text
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.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) 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
- EPSS: 0.366%, percentile 32.505%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian python-git (Debian): All versions (No fix recorded) \| \< 3.1.30-1+deb12u3 \| \< 3.1.44-1+deb13u1 \| \< 3.1.61-1
- ubuntu python-git (Ubuntu): All versions (No fix recorded)
- gitpython\_project gitpython: \< 3.1.55
- gitpython-developers gitpython: \< 3.1.55
- PyPI gitpython (PyPI): \< 3.1.55

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-94p4-4cq8-9g67>
- <https://github.com/gitpython-developers/GitPython/commit/8ac5a30519b6f4af85398b9b9d7064ff4d452da2>
- <https://www.vulncheck.com/advisories/gitpython-before-environment-variable-exfiltration-via-remote-add>
- <https://github.com/gitpython-developers/GitPython/commit/863417457a0633db7ea5aed4fd01e0b291a41162>
- <https://github.com/gitpython-developers/GitPython>
- <https://github.com/gitpython-developers/GitPython/releases/tag/3.1.55>
- <https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3951.yaml>
- <https://ubuntu.com/security/CVE-2026-73622>
- <https://www.cve.org/CVERecord?id=CVE-2026-73622>
- <https://security-tracker.debian.org/tracker/CVE-2026-73622>

---

Data as of 2026-12-05T04:46:53.045Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
