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.
References
| Link | Resource |
|---|---|
| https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-2f96-g7mh-g2hx | Exploit Vendor Advisory |
| https://www.vulncheck.com/advisories/gitpython-before-command-injection-via-option-prefix-abbreviation | Third Party Advisory |
| https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-2f96-g7mh-g2hx | Exploit Vendor Advisory |
Configurations
History
No history.
Information
Published : 2026-08-01 13:17
Updated : 2026-09-03 16:10
NVD link : CVE-2026-67325
Mitre link : CVE-2026-67325
CVE.ORG link : CVE-2026-67325
JSON object : View
Products Affected
gitpython_project
- gitpython
CWE
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
