Skip to main content
← All vulnerabilities
CVE-2026-67325PYSEC-2026-3836GHSA-2F96-G7MH-G2HX

GitPython before 3.1.51 Command Injection via option prefix abbreviation

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 contains an incomplete command injection blocklist that fails to account for git's long-option prefix abbreviation feature. Attackers can bypass the unsafe options guard by using abbreviated option names like upload_p instead of upload_pack, which git resolves to dangerous options and executes arbitrary commands.

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