CVE-2026-67322

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*

History

23 Oct 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) GitPython anterior a la 3.1.52 es vulnerable a la exfiltración de variables de entorno en Repo.clone_from(). La URL remota proporcionada por el llamador se pasa a través de Git.polish_url(), que en plataformas que no son Cygwin llama a os.path.expandvars() en la URL antes de invocar git clone. Un atacante que controla la URL de clonación puede incrustar tokens $NAME o ${NAME} que se expanden a los valores de las variables de entorno del proceso de alojamiento (p. ej., AWS_SECRET_ACCESS_KEY o GITHUB_TOKEN). La URL resultante, ahora que contiene el secreto, se transmite a través de la red a un host controlado por el atacante durante el intento de clonación, revelando el secreto.

03 Sep 2026, 16:11

Type Values Removed Values Added
CPE cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*
First Time Gitpython Project gitpython
Gitpython Project
References () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rwj8-pgh3-r573 - () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rwj8-pgh3-r573 - Exploit, Vendor Advisory
References () https://www.vulncheck.com/advisories/gitpython-before-environment-variable-exfiltration-via-clone-from - () https://www.vulncheck.com/advisories/gitpython-before-environment-variable-exfiltration-via-clone-from - Third Party Advisory

03 Aug 2026, 19:16

Type Values Removed Values Added
References () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rwj8-pgh3-r573 - () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rwj8-pgh3-r573 -

01 Aug 2026, 13:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-08-01 13:17

Updated : 2026-10-23 23:10


NVD link : CVE-2026-67322

Mitre link : CVE-2026-67322

CVE.ORG link : CVE-2026-67322


JSON object : View

Products Affected

gitpython_project

  • gitpython
CWE
CWE-200

Exposure of Sensitive Information to an Unauthorized Actor