{"cve":"CVE-2026-67322","nvd":{"published":"2026-08-01T13:17:02.493","modified":"2026-10-23T23:10:00.157","status":"Analyzed","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_v4":{"vector":"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","score":8.7},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-200"],"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","https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rwj8-pgh3-r573"],"products":["gitpython_project:gitpython"],"source":"nvd","synced_at":"2026-10-24T16:53:34.184483516+00:00"},"epss":{"cve":"CVE-2026-67322","score":0.00328,"percentile":0.25661,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-rwj8-pgh3-r573","url":"https://osv.dev/vulnerability/GHSA-rwj8-pgh3-r573","summary":"GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URL","modified":"2026-09-24T18:28:17.149390188Z","packages":[{"ecosystem":"PyPI","name":"gitpython","purl":"pkg:pypi/gitpython","ranges":["<3.1.52"],"fixed":["3.1.52"]}]},{"id":"PYSEC-2026-3842","url":"https://osv.dev/vulnerability/PYSEC-2026-3842","summary":"GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URL","modified":"2026-09-10T12:15:06.099914989Z","packages":[{"ecosystem":"PyPI","name":"gitpython","purl":"pkg:pypi/gitpython","ranges":["<3.1.52"],"fixed":["3.1.52"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}