CVE-2026-67322
published 2026-08-01CVE-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…
PriorityP346high7.5CVSS 3.1
AVNACLPRNUINSUCHINAN
EPSS
0.27%
20.0th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| gitpython-developers | gitpython | < 3.1.52 | 3.1.52 |
| gitpython_project | gitpython | < 3.1.52 | 3.1.52 |
| llvm | llvm | — | — |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvdv4.08.7HIGHCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GitPython before 3.1.52 is vulnerable to environment-variable exfiltration in Repo.clone_from().
ghsa_unreviewed·2026-08-01
CVE-2026-67322 [HIGH] CWE-200 GitPython before 3.1.52 is vulnerable to environment-variable exfiltration in Repo.clone_from().
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.
VulDB
gitpython-developers GitPython up to 3.1.51 URL Processing Repo.clone_from os command injection (EUVD-2026-51855)
vuldb·2026-08-01·CVSS 7.5
CVE-2026-67322 [HIGH] gitpython-developers GitPython up to 3.1.51 URL Processing Repo.clone_from os command injection (EUVD-2026-51855)
A vulnerability classified as problematic was found in gitpython-developers GitPython up to 3.1.51. Impacted is the function Repo.clone_from of the component URL Processing. Such manipulation leads to os command injection.
This vulnerability is referenced as CVE-2026-67322. It is possible to launch the attack remotely. No exploit is available.
Upgrading the affected component is advised.
Red Hat
gitpython: GitPython: Environment variable exfiltration via attacker-controlled clone URL
vendor_redhat·2026-08-01·CVSS 7.5
CVE-2026-67322 [HIGH] CWE-214 gitpython: GitPython: Environment variable exfiltration via attacker-controlled clone URL
gitpython: GitPython: Environment variable exfiltration via attacker-controlled clone URL
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.
A flaw was found in GitPython. A remote attacker can exploit a vulnerability in the Repo.clo
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2026-67322 GitPython: GitPython: Environment variable exfiltration via attacker-controlled clone URL [epel-all]
bugzilla·2026-08-10·CVSS 7.5
CVE-2026-67322 [HIGH] CVE-2026-67322 GitPython: GitPython: Environment variable exfiltration via attacker-controlled clone URL [epel-all]
CVE-2026-67322 GitPython: GitPython: Environment variable exfiltration via attacker-controlled clone URL [epel-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
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).
Bugzilla
CVE-2026-67322 gitpython: GitPython: Environment variable exfiltration via attacker-controlled clone URL
bugzilla·2026-08-01·CVSS 7.5
CVE-2026-67322 [HIGH] CVE-2026-67322 gitpython: GitPython: Environment variable exfiltration via attacker-controlled clone URL
CVE-2026-67322 gitpython: GitPython: Environment variable exfiltration via attacker-controlled clone URL
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.
2026-08-01
Published