What’s Vulnerable › Vulnerabilities

CVE-2026-67325: GitPython before 3.1.51 Command Injection via option prefix abbreviation

Description

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 products

How to fix

Upgrade to a fixed version: gitpython-developers GitPython 3.1.51. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-67325 or the next vulnerability affects your stack