Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-67322: Exposure of Sensitive Information to an Unauthorized Actor in gitpython-developers GitPython

0
High
Published: 08/01/2026 (08/01/2026, 15:30:28 UTC)
Source: CVE Database V5
Vendor/Project: gitpython-developers
Product: GitPython

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 v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

gitpython
pkg:pypi/gitpython
Affected versions
<3.1.52

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/01/2026, 13:04:37 UTC

Technical Analysis

GitPython before version 3.1.52 is vulnerable to exposure of sensitive environment variables during repository cloning. The vulnerability arises in the Repo.clone_from() function, which uses Git.polish_url() to process the remote URL. On non-Cygwin platforms, Git.polish_url() calls os.path.expandvars() on the URL, expanding any environment variable tokens embedded by an attacker. This results in secrets from the hosting process's environment being included in the URL transmitted over the network to an attacker-controlled server, leading to sensitive information disclosure.

Potential Impact

An attacker who can control the clone URL can cause the hosting process to leak environment variables containing sensitive information such as credentials or tokens. This disclosure occurs without authentication or user interaction and can lead to compromise of secrets used by the application or environment. The vulnerability has a high severity score (CVSS 8.7) due to the network exposure of sensitive data and lack of required privileges or user interaction.

Mitigation Recommendations

A patch is available that fixes this vulnerability in GitPython version 3.1.52 and later. Users should upgrade to version 3.1.52 or newer to remediate the issue. Since this is a cloud service, the vendor manages remediation for the cloud-hosted service; users should verify with the vendor that their environment is updated accordingly. Until patched, avoid cloning from untrusted or attacker-controlled URLs that could embed environment variable tokens.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-07-29T13:07:21.183Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null
Is Cloud Service
true

Threat ID: 6a6deb26bf32cb7a34c1fc09

Added to database: 08/01/2026, 12:48:38 UTC

Last enriched: 08/01/2026, 13:04:37 UTC

Last updated: 08/01/2026, 21:20:34 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses