Skip to main content
← All vulnerabilities
CVE-2026-69097PYSEC-2026-3981GHSA-3RP5-JJMW-4WV2

GitPython before 3.1.53 Config Injection via Submodule Names

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

Summary

GitPython before 3.1.53 fails to properly escape section names in git config files, allowing attackers to inject arbitrary configuration directives through malicious submodule names. Attackers can inject core.sshCommand or other dangerous config keys into the victim's .git/config via create_submodule or clone_from operations, achieving remote code execution when git performs ssh operations.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • gitpython-developers GitPython

    fixed in 3.1.53

  • gitpythonPyPI

    fixed in 3.1.53

References 2

GitHub · gitpython-developers/GitPython

vulncheck.com