PT-2026-67302

CVE-2026-67322

·

Published

2026-07-16

·

Updated

2026-09-22

Description by

CVSS 4.0
8.7
High
MetricsAV: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
Name of the Vulnerable Software and Affected Versions GitPython versions prior to 3.1.52
Description GitPython is susceptible to environment-variable exfiltration when using the Repo.clone from() function. The issue occurs because the remote URL provided by the user is processed by the Git.polish url() function, which invokes os.path.expandvars() on non-Cygwin platforms before executing the git clone command. An attacker who can control the clone URL can include tokens such as $NAME or ${NAME}, which the server expands into the actual values of the process's environment variables (for example, AWS SECRET ACCESS KEY or GITHUB TOKEN). These secrets are then transmitted over the network to an attacker-controlled host during the clone attempt. Additionally, this behavior can be used to bypass the check unsafe protocols() filter by expanding a variable into an unsafe protocol like ext:: after the initial security check has been performed.
Recommendations Update GitPython to version 3.1.52 or later. As a temporary mitigation, avoid passing untrusted or user-supplied URLs to the Repo.clone from() function.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-M4F3-G4CQ-HQRX
GHSA-RWJ8-PGH3-R573
ECHO-8B1B-6D4C-BCD1
OESA-2026-3249
OESA-2026-3250
OESA-2026-3251
OPENSUSE-SU-2026:11466-1
OPENSUSE-SU-2026:21874-1
PYSEC-2026-3842
RHSA-2026:44416
RHSA-2026:45785
RHSA-2026:45940
RHSA-2026:71113
RHSA-2026:71114
SUSE-SU-2026:4072-1
Found an issue in the description? Have something to add? Feel free to write us 👾