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.
Metrics
CVSS 3.1 8.8/10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| gitpython-developers | GitPython | < 3.1.51 |
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-2f96-g7mh-g2hxExploit, Vendor Advisory
- https://www.vulncheck.com/advisories/gitpython-before-command-injection-via-option-prefix-abbreviationThird Party Advisory
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-2f96-g7mh-g2hxExploit, Vendor Advisory
Timeline
- Published
- Aug 1, 2026
- Last modified
- Oct 23, 2026
- NVD status
- Analyzed