Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rwj8-
- https://www.vulncheck.com/advisories/gitpython-before-environment-variable-exfil
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rwj8-
FAQ
What is CVE-2026-67322?
CVE-2026-67322 is a vulnerability with a CVSS score of 7.5 (HIGH). 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 ...
How severe is CVE-2026-67322?
CVE-2026-67322 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-67322?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.