CVE-2026-67322: 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-Cyg
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.
Details
Original advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-67322
Referenced CVEs
| CVE | CSIRTS overview | External |
|---|---|---|
| CVE-2026-67322 | coverage & exploitation status | NVD · CVE.org |
Recent advisories for GitPython
A cluster of recent advisories against the same product widens the attack surface — attackers routinely chain freshly published CVEs on one product, so review these together.
- highCVE-2026-67326: GitPython before 3.1.50 fails to validate newline characters in the section parameter of confi…nvd · 2026-08-01
- highCVE-2026-67325: GitPython before 3.1.51 contains an incomplete command injection blocklist that fails to accou…nvd · 2026-08-01
- criticalCVE-2026-67324: GitPython 3.1.50 fails to recognize joined short-option forms such as -u (the short form of --…nvd · 2026-08-01
- highCVE-2026-67323: GitPython before 3.1.51 fails to guard against dangerous Git options passed as keyword argumen…nvd · 2026-08-01
- highGHSA-94p4-4cq8-9g67: GitPython: Environment-variable exfiltration via Repo.create_remote() / Remote.add() URL …ghsa · 2026-07-24
- highGHSA-r9mr-m37c-5fr3: GitPython: Unsafe git option guard bypass via single-character kwarg value token smugglin…ghsa · 2026-07-24
More from NVD Recent CVEs
- mediumCVE-2026-67355: guzzlehttp/guzzle versions before 7.15.1 fail to preserve host-only cookie scope, storing the …2026-08-01
- mediumCVE-2026-67354: guzzlehttp/guzzle versions before 7.15.1 contain an information disclosure vulnerability in Re…2026-08-01
- mediumCVE-2026-67353: guzzlehttp/guzzle versions before 7.15.1 contain a denial of service vulnerability in the Cook…2026-08-01
- highCVE-2026-67352: luci-app-https-dns-proxy contains a stored cross-site scripting vulnerability in the resolver_…2026-08-01
- mediumCVE-2026-67344: ArcadeDB before 26.7.2 fails to enforce the UPDATE_SCHEMA database permission on the ALTER TYP…2026-08-01