Vulnerability
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-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.
36 advisories report this vulnerability, across 9 ecosystems.
Advisories
- CGA-2hx9-gcfc-2fvp
- CGA-2wg4-p4c7-3qfr
- CGA-3gw4-q932-824c
- CGA-6w5m-xc4v-79jc
- CGA-7r85-gw2x-3jhm
- CGA-96j8-xx4v-wrp3
- CGA-c4rg-6jjj-8vr2
- CGA-cw55-hffj-854c
- CGA-f2rq-g7p8-jhp4
- CGA-gf4q-vj84-8gc9
- CGA-hwjq-gvpf-hrm6
- CGA-hwp6-92w6-3hc8
- CGA-mww4-25h8-wmw9
- CGA-p2h8-r9xh-h4f9
- CGA-pch2-xj4h-54v9
- CGA-w7qj-jh8p-vx8x
-
DEBIAN-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-Cygwin platforms calls…
-
DLA-4872-1
python-git - security update
-
DSA-6594-1
python-git - security update
-
GHSA-rwj8-pgh3-r573
GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URL
-
OESA-2026-3249
python-GitPython security update
-
OESA-2026-3250
python-GitPython security update
-
OESA-2026-3251
python-GitPython security update
-
PYSEC-2026-3842
GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URL
-
RHSA-2026:44416
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
-
RHSA-2026:45785
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
-
RHSA-2026:45940
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
-
RHSA-2026:59135
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update
-
RHSA-2026:59136
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update
-
RHSA-2026:71113
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update
-
RHSA-2026:71114
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update
-
SUSE-SU-2026:4072-1
Security update for python-GitPython
-
SUSEVEX-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-Cygwin platforms calls…
-
UBUNTU-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-Cygwin platforms calls…
-
openSUSE-SU-2026:11466-1
python313-GitPython-3.1.58-1.1 on GA media
-
openSUSE-SU-2026:21874-1
Security update for python-GitPython