Advisory record · GHSA-rwj8-pgh3-r573

GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URL

CVSS 8.7 HighEPSS 0.0033 · 26th percentile

Published by the GitHub Advisory Database at 21 Jul 2026, 22:06 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
gitpythonPyPI<3.1.523.1.52
Identifiers
GHSA-rwj8-pgh3-r573 · CVE-2026-67322 · PYSEC-2026-3842
Weakness (CWE)
CWE-200 · CWE-201
Published
21 Jul 2026
Updated
24 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

GitPython versions before 3.1.52 are affected. When Repo.clone_from() or Repo.clone() is given a URL, GitPython expands environment-variable references in it before running git clone, so an attacker who can supply the URL can get server environment variable values such as cloud credentials or tokens sent to a host they name. Upgrade to GitPython 3.1.52 or later. No workaround is given, so avoid passing untrusted URLs to these functions until you can upgrade.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.7 High 4.0 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 CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0033, the 26th percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:09 UTC First seen by agentprime
  2. 31 Oct 2026, 14:09 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.