Information Exposure Affecting py3.10-gitpython package, versions <3.1.52-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.33% (24th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-MINIMOSLATEST-PY310GITPYTHON-19534754
  • published5 Sept 2026
  • disclosed1 Aug 2026

Introduced: 1 Aug 2026

CVE-2026-67322  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade Minimos:latest py3.10-gitpython to version 3.1.52-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3.10-gitpython package and not the py3.10-gitpython package as distributed by Minimos. See How to fix? for Minimos:latest relevant fixed versions and status.

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 Base Scores

version 3.1