Skip to main content
← All vulnerabilities
CVE-2026-76221GHSA-JM78-9FVV-MHGRPYSEC-2026-3783

GitPython before 3.1.58 Config Injection via option-name

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

Summary

GitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allows attackers to forge arbitrary git-config directives by injecting equals signs, hash symbols, and whitespace into option names. Attackers can inject malicious option names like 'sshCommand = touch /tmp/RCE #' to execute arbitrary commands via core.sshCommand or core.hooksPath on the next git operation.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • gitpython-developers GitPython

    fixed in 3.1.58

  • gitpythonPyPI

    fixed in 3.1.58

References 2

GitHub · gitpython-developers/GitPython

vulncheck.com