CVE-2026-67322
Received Received - Intake

Environment Variable Exfiltration in GitPython via Repo.clone_from

Vulnerability report for CVE-2026-67322, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-01

Last updated on: 2026-08-01

Assigner: VulnCheck

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-01
Last Modified
2026-08-01
Generated
2026-08-01
AI Q&A
2026-08-01
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
gitpython gitpython to 3.1.52 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-200 The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

GitPython before version 3.1.52 is vulnerable to environment variable exfiltration through the Repo.clone_from() function. When cloning a repository, the remote URL is processed by Git.polish_url(), which on non-Cygwin systems expands environment variables in the URL using os.path.expandvars(). An attacker can embed tokens like $NAME or ${NAME} in the URL, which get replaced with sensitive environment variable values (e.g., AWS_SECRET_ACCESS_KEY). These secrets are then sent to the attacker-controlled host during the clone attempt.

Detection Guidance

Check for GitPython versions before 3.1.52. Inspect network traffic for unusual clone URLs containing environment variables like $AWS_SECRET_ACCESS_KEY or $GITHUB_TOKEN. Review logs for git clone commands with suspicious URLs.

Impact Analysis

This vulnerability allows attackers to steal sensitive environment variables if they control the clone URL. Secrets like API keys, tokens, or credentials could be exposed, leading to unauthorized access, data breaches, or further attacks on systems using those secrets.

Compliance Impact

This vulnerability could lead to unauthorized disclosure of sensitive data, violating GDPR (data protection) and HIPAA (health information privacy) requirements. Organizations may face fines or penalties for failing to protect personal or health data due to such breaches.

Mitigation Strategies

Upgrade GitPython to version 3.1.52 or later. Avoid passing untrusted URLs to Repo.clone_from(). Use environment variable sanitization or disable URL expansion in git operations.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-67322. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart