Skip to main content
← All vulnerabilities
CVE-2026-76220PYSEC-2026-3843GHSA-WVPP-8HX9-P66J

GitPython before 3.1.58 Command Execution via split_single_char_options

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 command execution vulnerability in the check_unsafe_options guard that can be bypassed by combining a single-character kwarg with split_single_char_options=False. Attackers can supply a crafted kwargs dictionary to guarded methods like clone_from to emit a joined token parsed as --upload-pack, enabling arbitrary OS command execution at default allow_unsafe_options=False.

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