Skip to main content
← All vulnerabilities
CVE-2026-67323GHSA-956X-8GVW-WG5VPYSEC-2026-3839

GitPython before 3.1.51 Command Injection via unguarded Git options

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

Summary

GitPython before 3.1.51 fails to guard against dangerous Git options passed as keyword arguments in Repo.archive() and git.ls_remote(), allowing command injection via options such as --exec/--upload-pack (leading to arbitrary command execution). Additionally, Repo.iter_commits() and Repo.blame() do not check for leading-dash revision arguments, so a revision like --output=<path> can cause Git to open and truncate an arbitrary file. Exploitation requires an application that passes attacker-controlled arguments to these methods.

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.51

  • gitpythonPyPI

    fixed in 3.1.51

References 2

GitHub · gitpython-developers/GitPython

vulncheck.com