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

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-24T21:45:16.000Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-94p4-4cq8-9g67, PYSEC-2026-3951
- Weaknesses: CWE-200, CWE-214
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- gitpython-developers GitPython: before 3.1.55 (not affected: 3.1.55)
- gitpython (PyPI): before 3.1.55
- gitpython_project gitpython: before 3.1.55

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:4.0 `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-94p4-4cq8-9g67> (exploit, evidence, vendor-advisory, web)
- <https://github.com/gitpython-developers/GitPython/commit/8ac5a30519b6f4af85398b9b9d7064ff4d452da2> (fix, patch, web)
- <https://www.vulncheck.com/advisories/gitpython-before-environment-variable-exfiltration-via-remote-add> (advisory, third-party-advisory, web)
- <https://github.com/gitpython-developers/GitPython/commit/863417457a0633db7ea5aed4fd01e0b291a41162> (web)
- <https://github.com/gitpython-developers/GitPython> (package)
- <https://github.com/gitpython-developers/GitPython/releases/tag/3.1.55> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3951.yaml> (web)

## Sources

- CVE List: [CVE-2026-73622](https://www.cve.org/CVERecord?id=CVE-2026-73622), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-94p4-4cq8-9g67](https://github.com/advisories/GHSA-94p4-4cq8-9g67), CC-BY-4.0, modified 2026-09-24
- NVD: [CVE-2026-73622](https://nvd.nist.gov/vuln/detail/CVE-2026-73622), Public domain, modified 2026-10-24
- PyPA Advisory Database: [PYSEC-2026-3951](https://osv.dev/vulnerability/PYSEC-2026-3951), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-73622 · Whole record: https://cve.day/CVE-2026-73622.json · Rebuilt by cve.day 2026-11-25T22:59:32.708Z
