PT-2026-67302 · Pypi+1 · Gitpython+1

·

CVE-2026-67322

·

Published

2026-07-16

·

Updated

2026-09-10

CVSS v4.0

9.3

Critical

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/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.

Exploit

Fix

Information Disclosure

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2026-10998
CVE-2026-67322
GHSA-M4F3-G4CQ-HQRX
GHSA-RWJ8-PGH3-R573
OESA-2026-3249
OESA-2026-3250
OESA-2026-3251
OPENSUSE-SU-2026:11466-1
PYSEC-2026-3842
RHSA-2026:44416
RHSA-2026:45785
RHSA-2026:45940

Affected Products

Gitpython
Red Os