Bug 2510021 (CVE-2026-67322) - CVE-2026-67322 gitpython: GitPython: Environment variable exfiltration via attacker-controlled clone URL
Summary: CVE-2026-67322 gitpython: GitPython: Environment variable exfiltration via at...
Keywords:
Status: NEW
Alias: CVE-2026-67322
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-01 13:03 UTC by OSIDB Bzimport
Modified: 2026-08-04 14:54 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-01 13:03:44 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.