CVE-2026-67322Gitpython Project Gitpython
High 8.7 No auth needed
Follow: this CVE · Gitpython Project · Gitpython Project Gitpython We alert you by email or Slack (account required).
- Priority
- 67
- CVSS 4.0
- 8.7
- EPSS
- —
- Auth required
- No
- Published
- Aug 1, 2026
- Updated
- Oct 23, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-200
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS: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
What happens
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.
What to do
- Apply the vendor's security update for Gitpython.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | gitpython |
< 3.1.52 |
3.1.52 |
pip install "gitpython>=3.1.52" |
| PyPI | gitpython |
< 3.1.52 |
3.1.52 |
pip install "gitpython>=3.1.52" |
Per OSV / GitHub Advisories (GHSA-rwj8-pgh3-r573, PYSEC-2026-3842). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gitpython_project | gitpython | < 3.1.52 |
Official advisories
- Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update · Red Hat · RHSA-2026:71113 · Nov 23, 2026 Critical
- Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update · Red Hat · RHSA-2026:71114 · Nov 23, 2026 Critical
- Security update for python-GitPython · SUSE · openSUSE-SU-2026:21874-1 · Sep 18, 2026 Critical
- Security update for python-GitPython · SUSE · SUSE-SU-2026:4072-1 · Sep 8, 2026 Critical
- Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update · Red Hat · RHSA-2026:59135 · Aug 25, 2026 High
- python313-GitPython-3.1.58-1.1 on GA media · SUSE · openSUSE-SU-2026:11466-1 · Aug 6, 2026 High
Also: Red Hat (+4)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Vendor Advisory
- www.vulncheck.com Third Party Advisory