Skip to main content
← All vulnerabilities
CVE-2026-73622GHSA-94P4-4CQ8-9G67PYSEC-2026-3951

GitPython before 3.1.55 Environment Variable Exfiltration via Remote.add()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.1.55
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • gitpython-developers GitPython

    fixed in 3.1.55

  • gitpythonPyPI

    fixed in 3.1.55

References 3

GitHub · gitpython-developers/GitPython

vulncheck.com