← Vulnerability feed

Vulnerability record · CVE-2026-67322 · published 1 August 2026

CVE-2026-67322: Gitpython project gitpython information exposure vulnerability

Gitpython Project · Gitpython

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.

8.7 CVSS 4.0 High EPSS 0.33% · top 76.7% CWE-200 · Information exposure
8.7CVSS 4.0 base score
0.33%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
3References, 2 tagged exploit
3 Sep 2026Last modified by NVD

Description

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.

CVSS:4.0/AV: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:

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2026-67322 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2026-42284Gitpython project gitpython argument injection vulnerabilityGitPython is a python library used to interact with Git repositories. Prior to version 3.1.47, _clone() validates multi_options as the original list,…EPSS 0.71%9.8CVE-2023-40267Gitpython project gitpython vulnerabilityGitPython before 3.1.32 does not block insecure non-multi options in clone and clone_from. NOTE: this issue exists because of an incomplete fix for C…EPSS 1.2%9.8CVE-2022-24439Gitpython project gitpython improper input validation vulnerabilityAll versions of package gitpython are vulnerable to Remote Code Execution (RCE) due to improper user input validation, which makes it possible to inj…EPSS 5.7%9.3CVE-2026-78676Gitpython project gitpython argument injection vulnerabilityGitPython before 3.1.59 fails to safely re-serialize multi-line git-config values during write operations, corrupting dormant quoted values into inje…EPSS 0.78%9.3CVE-2026-67324Gitpython project gitpython os command injection vulnerabilityGitPython 3.1.50 fails to recognize joined short-option forms such as -u<value> (the short form of --upload-pack=<value>) when enforcing its default …EPSS 0.64%8.8CVE-2026-42215Gitpython project gitpython os command injection vulnerabilityGitPython is a python library used to interact with Git repositories. From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git op…EPSS 0.90%8.7CVE-2026-87819Gitpython project gitpython inefficient regular expression (redos) vulnerabilityGitPython before 3.1.60 contains a regular expression denial of service vulnerability in Actor.name_email_regex that processes commit author and comm…EPSS 0.52%8.7CVE-2026-87817Gitpython project gitpython code injection vulnerabilityGitPython before 3.1.60 fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked file…EPSS 0.40%

Source: NIST National Vulnerability Database (record CVE-2026-67322), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.