{"id":"GHSA-m4f3-g4cq-hqrx","title":"Duplicate Advisory: GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URL","summary":"Duplicate Advisory: GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URL","severity":"high","cvss":7.5,"cwe":["CWE-200"],"vendor":"gitpython","product":"gitpython","ecosystem":"pip","affected":["gitpython <= 3.1.51"],"published":"2026-08-01","updated":"2026-09-08","sourceUpdated":"2026-09-08T15:34:15Z","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-m4f3-g4cq-hqrx","references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rwj8-pgh3-r573"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-67322"},{"url":"https://www.vulncheck.com/advisories/gitpython-before-environment-variable-exfiltration-via-clone-from"},{"url":"https://github.com/advisories/GHSA-m4f3-g4cq-hqrx"}],"tags":["ghsa","pip"],"ingestedAt":"2026-09-08T16:34:19.230Z","slug":"GHSA-m4f3-g4cq-hqrx","body":"## Overview\n\n## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-rwj8-pgh3-r573. This link is maintained to preserve external references.\n\n## Original Description\n\nGitPython 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.\n\n## Affected packages\n\n- `gitpython <= 3.1.51`\n\n## Remediation\n\nRefer to the advisory for the patched release.","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":41.3,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}