{"id":"CVE-2026-67322","published":"2026-08-01T12:22:17Z","modified":"2026-08-14T16:50:51Z","title":"GitPython before 3.1.52 Environment Variable Exfiltration via clone_from","vendor":"gitpython-developers","product":"GitPython","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00328,"percentile":0.26548,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rwj8-pgh3-r573","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/gitpython-before-environment-variable-exfiltration-via-clone-from","tags":["third-party-advisory"]}],"priority":{"score":10.6,"factors":[{"name":"EPSS percentile","points":5.31},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"gitpython-developers","affectedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["< 3.1.52"]}],"fixedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["3.1.52"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-03T18:27:17.622607Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"GitPython","vulnerableRanges":["<3.1.52"],"patched":["3.1.52"],"from":["GHSA-rwj8-pgh3-r573","PYSEC-2026-3842"],"provenance":"source"}],"summary":{"text":"GitPython before 3.1.52 leaks environment variables through Repo.clone_from(), where the caller-supplied remote URL is run through os.path.expandvars() on non-Cygwin platforms before git clone is invoked. An attacker who controls the clone URL and can make the application clone from it can embed $NAME or ${NAME} tokens so that the hosting process's secrets (such as cloud or source-hosting credentials) are expanded into the URL and sent over the network to an attacker-controlled host during the clone attempt, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:33Z"},"euvd":{"id":"EUVD-2026-51855","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gitpython-developers-gitpython-cve-2022-24439","parents":[{"from":"CVE-2022-24439","to":"CVE-2026-67322","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/2625ed9fc074091c531c27ffcba7902771130261","https://github.com/gitpython-developers/GitPython/commit/8ac5a30519b6f4af85398b9b9d7064ff4d452da2"],"basis":"shared function","functions":["_clone"]}]},{"from":"CVE-2023-40267","to":"CVE-2026-67322","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/ca965ecc81853bca7675261729143f54e5bf4cdd","https://github.com/gitpython-developers/GitPython/commit/8ac5a30519b6f4af85398b9b9d7064ff4d452da2"],"basis":"shared function","functions":["_clone"]}]},{"from":"CVE-2024-22190","to":"CVE-2026-67322","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/util.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/ef3192cc414f2fd9978908454f6fd95243784c7f","https://github.com/gitpython-developers/GitPython/commit/8ac5a30519b6f4af85398b9b9d7064ff4d452da2"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2026-67322","to":"CVE-2026-67323","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/cmd.py","git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/8ac5a30519b6f4af85398b9b9d7064ff4d452da2","https://github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738"],"basis":"shared function","functions":["_clone"]}]}],"packageHistory":[{"cve":"CVE-2026-44244","published":"2026-05-07","fixed":"3.1.49","kev":false},{"cve":"CVE-2026-67323","published":"2026-08-01","fixed":"3.1.51","kev":false},{"cve":"CVE-2026-67325","published":"2026-08-01","fixed":"3.1.51","kev":false,"link":{"from":"CVE-2026-67325","to":"CVE-2026-67322","relation":"successor","confidence":"high","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:GitPython","fromFixed":"3.1.51","toFixed":"3.1.52","daysApart":0},{"kind":"same-code","provenance":"machine","files":["git/cmd.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/8ac5a30519b6f4af85398b9b9d7064ff4d452da2","https://github.com/gitpython-developers/GitPython/commit/56806080c1348749b07daa4a2024ce47b3cad285"],"basis":"shared file"}]}},{"cve":"CVE-2026-67322","published":"2026-08-01","fixed":"3.1.52","kev":false},{"cve":"CVE-2026-76217","published":"2026-08-19","fixed":"3.1.58","kev":false},{"cve":"CVE-2026-76218","published":"2026-08-19","fixed":"3.1.58","kev":false},{"cve":"CVE-2026-76219","published":"2026-08-19","fixed":"3.1.58","kev":false}],"package":"PyPI:GitPython"}}