CVE-2026-73622: GitPython before 3.1.55 Environment Variable Exfiltration via Remote.add()

Published Aug 13, 2026
·
Updated

GitPython before 3.1.55 fails to disable environment variable expansion in Remote.create() and Submodule.add() URL handling, allowing attackers to exfiltrate secrets by supplying URLs containing variable references. Attackers can craft URLs with environment variable tokens that are expanded into .git/config and .gitmodules, then transmitted to attacker-controlled hosts during fetch or pull operations.

Affected Software

1 affected component
pypi/GitPython<3.1.55

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade GitPython to a version that resolves this vulnerability.

    Fixed in 3.1.55
  2. Configuration

    In GitPython, ensure environment variable expansion is disabled when handling Remote.create() and Submodule.add() URLs so that tokenized URLs are not expanded into .git/config and .gitmodules.

    GitPython Remote.create()/Submodule.add() URL handling environment variable expansion = disabled

Event History

Aug 13, 2026
CVE Published
via MITRE·11:28 AM
Data Sourced
via MITRE·11:28 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-73622?

The severity of CVE-2026-73622 is rated high with a score of 7.5.

2

How do I fix CVE-2026-73622?

To fix CVE-2026-73622, update GitPython to version 3.1.55 or later.

3

What kind of vulnerability is CVE-2026-73622?

CVE-2026-73622 is an information leak vulnerability that allows the exfiltration of sensitive environment variables.

4

Who is affected by CVE-2026-73622?

Users of GitPython versions prior to 3.1.55 are affected by CVE-2026-73622.

5

What can attackers do with CVE-2026-73622?

Attackers can exfiltrate secrets by crafting URLs that include environment variable references using CVE-2026-73622.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203