Environment Variable Exfiltration in GitPython Versions Prior to 3.1.52
CVE-2026-67322

8.7HIGH

Key Information:

Status
Vendor
CVE Published:
1 August 2026

What is CVE-2026-67322?

GitPython versions before 3.1.52 have a vulnerability that allows for environment variable exfiltration through the Repo.clone_from() method. If an attacker can control the remote URL used in this method call, they can manipulate the URL to include tokens that expand to sensitive environment variable values (e.g., AWS_SECRET_ACCESS_KEY, GITHUB_TOKEN). This leads to the unintentional transmission of these secrets to an attacker-controlled destination during the cloning process, posing serious security risks to affected systems.

Affected Version(s)

GitPython 0 < 3.1.52

GitPython 3.1.52

References

CVSS V4

Score:
8.7
Severity:
HIGH
Confidentiality:
High
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

KrisKennawayDD
.