Bug 2513714 - CVE-2026-67322 GitPython: GitPython: Environment variable exfiltration via attacker-controlled clone URL [epel-all]
Summary: CVE-2026-67322 GitPython: GitPython: Environment variable exfiltration via at...
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: GitPython
Version: epel10
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Lubomír Sedlář
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["2689fb25-837b-408e-8f75-d...
Depends On:
Blocks: CVE-2026-67322
TreeView+ depends on / blocked
 
Reported: 2026-08-10 23:47 UTC by Anten Skrabec
Modified: 2026-08-16 13:16 UTC (History)
5 users (show)

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


Attachments (Terms of Use)

Description Anten Skrabec 2026-08-10 23:47:07 UTC
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). The resulting URL, now containing the secret, is transmitted over the network to an attacker-controlled host during the clone attempt, disclosing the secret.

Comment 1 Ben Beasley 2026-08-16 13:16:19 UTC
This is fixed in 3.1.52, which is already in EPEL9 and EPEL10. EPEL8 is at an old version affected by (at this point) dozens of known security issues, but can’t be straightforwardly updated.


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