CVE-2026-67322: GitPython before 3.1.52 Environment Variable Exfiltration via clone_from

Published Aug 1, 2026
·
Updated

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

1 affected component
GitPython GitPython<3.1.52

Event History

Aug 1, 2026
CVE Published
via MITRE·12:22 PM
Data Sourced
via MITRE·12:22 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·01:03 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·01:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-67322?

CVE-2026-67322 has a high severity rating of 8.7.

2

How do I fix CVE-2026-67322?

To fix CVE-2026-67322, upgrade GitPython to version 3.1.52 or later.

3

What is the risk associated with CVE-2026-67322?

CVE-2026-67322 has a risk score of 47, indicating a significant potential for exploitation.

4

What type of vulnerability is CVE-2026-67322 classified as?

CVE-2026-67322 is classified as an information leak vulnerability.

5

What platforms are affected by CVE-2026-67322?

CVE-2026-67322 affects non-Cygwin platforms using GitPython versions before 3.1.52.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203