CVE-2026-67324: Legit · GitPython unsafe clone option gate bypass through joined short options
Affects legitSource GCVE Database
Not known to be exploited · CVSS 9.3 Critical : upgrade to 1.2.0.post0_11 as a priority.
Data as of 26 Oct 2026, 19:11 UTC
- Patch
- Available – fixed in 1.2.0.post0_11
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 1 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade legit to 1.2.0.post0_11.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewlegitpkg:brew/legitOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in GitPython version 1.2.0.post0_11 that fixes the unsafe option gate to correctly parse and canonicalize joined short options such as '-uVALUE' and '-cKEY=VALUE'. Users should upgrade to this fixed version to ensure the unsafe option checks are effective. Until patched, avoid passing untrusted input to the multi_options parameter or explicitly set allow_unsafe_options=True only when safe. The vendor advisory recommends maintaining command-specific metadata to recognize all forms of unsafe options for robust validation.
Description
GitPython version 3.1.50 contains a vulnerability where the default unsafe option gate intended to block dangerous git clone options can be bypassed using joined short-option forms such as '-u<helper>'. This allows execution of local commands via Git's upload-pack option even when unsafe options are supposed to be blocked. The issue arises because the option canonicalization does not recognize joined short options correctly, leading to a residual security bypass.
References
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-v396-v7q4-x2qj (opens in a new tab)
- github.com/gitpython-developers/GitPython/pull/2162 (opens in a new tab)
- github.com/gitpython-developers/GitPython (opens in a new tab)
- github.com/gitpython-developers/GitPython/releases/tag/3.1.51 (opens in a new tab)