GitPython 3.1.50 fails to recognize joined short-option forms such as -u<value> (the short form of --upload-pack=<value>) when enforcing its default unsafe-option gate. When an application passes attacker-influenced clone options into Repo.clone_from(..., multi_options=..., allow_unsafe_options=False), an attacker can supply -u<helper> to bypass the gate that blocks --upload-pack/-u, causing Git to execute the specified helper command during clone. Fixed in 3.1.51.
Fix
Patch, vendor advisory and mitigation references on NVD 1
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v396-v7q4-x2qj Exploit, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 9.3 · gitpython_projectNVD modified 2026-10-23 23:10
Affected (CPE criteria) 1
cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*
References 2
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v396-v7q4-x2qj Exploit, Vendor Advisory
- https://www.vulncheck.com/advisories/gitpython-authentication-bypass-via-joined-short-options Third Party Advisory