CVE-2026-67322
Vulnerability Summary
Timeline
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 Metrics
- v4.0•HIGH•Score: 8.7CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- v4.0•HIGH•Score: 8.7CVSS: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
- v3.1•HIGH•Score: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS Trends
Current EPSS score: 0.27%• Percentile: 20%
Techniques & Countermeasures
- CWE-200•Exposure of Sensitive Information to an Unauthorized Actor
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
Affected Systems
- chainguard•checkov
< 3.3.8-r1
- chainguard•mlflow
< 3.14.0-r2 | < 3.16.0-r0
- wolfi•checkov
< 3.3.8-r1
- wolfi•mlflow
< 3.14.0-r2 | < 3.16.0-r0
- debian•python-git
all | all | all | all | < 3.1.61-1
- ubuntu•python-git
all
- gitpython_project•gitpython
< 3.1.52
- gitpython-developers•gitpython
< 3.1.52
- PyPI•gitpython
< 3.1.52
References (13)
- 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/pull/2172
- https://github.com/gitpython-developers/GitPython/commit/8ac5a30519b6f4af85398b9b9d7064ff4d452da2
- https://github.com/gitpython-developers/GitPython
- https://github.com/gitpython-developers/GitPython/releases/tag/3.1.52
- https://ubuntu.com/security/CVE-2026-67322
- https://www.cve.org/CVERecord?id=CVE-2026-67322
- https://security-tracker.debian.org/tracker/CVE-2026-67322
- https://nvd.nist.gov/vuln/detail/CVE-2026-67322
- https://pypi.org/project/gitpython
- https://github.com/advisories/GHSA-rwj8-pgh3-r573
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/67xxx/CVE-2026-67322.json