CVE-2026-67322
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.
Weakness
- CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-08-03 |
Timeline
- 2026-07-21GitHub advisory published (GHSA-rwj8-pgh3-r573)11 days before publication
- 2026-08-01Published by the CNA12:22 UTC
- 2026-08-03CISA SSVC decision recorded2 days after publication
Exploit and advisory records
GitHub advisory GHSA-rwj8-pgh3-r573, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI gitpython | before 3.1.52 | 3.1.52 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| gitpython_project gitpython | before 3.1.52fixed in 3.1.52 | 3.1.52 |
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rwj8-pgh3-r573
- https://www.vulncheck.com/advisories/gitpython-before-environment-variable-exfiltration-via-clone-from
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-67322'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-67322'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-67322'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-67322'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).