Vulnerability · Published Aug 1, 2026 · Assigned by VulnCheck
CVE-2026-67322GitPython before 3.1.52 Environment Variable Exfiltration via clone_from
High 7.5
In plain English
A high-severity information exposure in GitPython from gitpython-developers. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
GitPython before 3.1.52 is vulnerable to environment-variable exfiltration in Repo.clone_from(). The caller-supplied remote URL is passed through Git.polish_url(), which on non-Cygwin platforms calls os.path.expandvars() on the URL before invoking git clone. An attacker who controls the clone URL can embed $NAME or ${NAME} tokens that are expanded to the values of the hosting process's environment variables (e.g., AWS_SECRET_ACCESS_KEY or GITHUB_TOKEN). The resulting URL, now containing the secret, is transmitted over the network to an attacker-controlled host during the clone attempt, disclosing the secret.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-git | 3.1.30-1+deb12u3 | DEBIAN-CVE-2026-67322 |
| Debian:13 | python-git | 3.1.44-1+deb13u1 | DEBIAN-CVE-2026-67322 |
| Debian:14 | python-git | 3.1.61-1 | DEBIAN-CVE-2026-67322 |
| PyPI | gitpython | 3.1.52 | GHSA-rwj8-pgh3-r573 |
| PyPI | gitpython | 3.1.52 | PYSEC-2026-3842 |
| Ubuntu:26.10 | python-git | no fix listed | UBUNTU-CVE-2026-67322 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| gitpython-developers | GitPython | 0 – before 3.1.52 |
Weakness: CWE-200 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- GitHub Security Advisory (GHSA-rwj8-pgh3-r573) vendor-advisory
- VulnCheck Advisory: GitPython before 3.1.52 Environment Variable Exfiltration via clone_from third-party-advisory