CVE-2026-67325
GitPython before 3.1.51 contains an incomplete command injection …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-2f96-g7mh-g2hx
- www.vulncheck.com/advisories/gitpython-before-command-injection-via-option-prefix-abbrevia
- github.com/gitpython-developers/GitPython/pull/2161
- github.com/gitpython-developers/GitPython/commit/56806080c1348749b07daa4a2024ce47b3cad285
- github.com/gitpython-developers/GitPython/releases/tag/3.1.51
- nvd.nist.gov/vuln/detail/CVE-2026-67325
- github.com/advisories/GHSA-2f96-g7mh-g2hx
- nvd.nist.gov/vuln/detail/CVE-2026-67325
- cve.org/CVERecord?id=CVE-2026-67325
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.