CVE-2026-67322: GitPython before 3.1.52 Environment Variable Exfiltration via clone_from
GitPython before 3.1.52 is vulnerable to environment-variable exfiltration in Repo.clonefrom(). The caller-supplied remote URL is passed through Git.polishurl(), 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., AWSSECRETACCESSKEY or GITHUBTOKEN). The resulting URL, now containing the secret, is transmitted over the network to an attacker-controlled host during the clone attempt, disclosing the secret.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-67322?
CVE-2026-67322 has a high severity rating of 8.7.
How do I fix CVE-2026-67322?
To fix CVE-2026-67322, upgrade GitPython to version 3.1.52 or later.
What is the risk associated with CVE-2026-67322?
CVE-2026-67322 has a risk score of 47, indicating a significant potential for exploitation.
What type of vulnerability is CVE-2026-67322 classified as?
CVE-2026-67322 is classified as an information leak vulnerability.
What platforms are affected by CVE-2026-67322?
CVE-2026-67322 affects non-Cygwin platforms using GitPython versions before 3.1.52.