CVE-2026-67325

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.

Affected Software

VendorProductVersion RangeStatus
gitpython-developersGitPython0 < 3.1.51affected
gitpython-developersGitPython3.1.51unaffected

Weaknesses

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

References