CVE-2026-42215: Standardebooks · GitPython has Command Injection via Git options bypass
Affects standardebooksSource GCVE Database
Not known to be exploited · CVSS 8.8 High : upgrade to 3.0.4 soon.
Data as of 22 Nov 2026, 18:22 UTC
- Patch
- Available – fixed in 3.0.4
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 7 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: 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 21 Nov 2026.
What to do
Upgrade standardebooks to 3.0.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewstandardebookspkg:brew/standardebooksOther 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 3.0.4 that fixes this command injection vulnerability. Users should upgrade to version 3.0.4 or later. Until then, avoid passing untrusted or attacker-controlled kwargs to the affected GitPython API methods. No other mitigations are indicated by the vendor advisory.
Description
GitPython versions from 2.9.2 up to but not including 3.0.4 contain a command injection vulnerability due to improper validation of Python keyword arguments that map to unsafe Git command options. Specifically, the use of underscore-form kwargs like 'upload_pack' and 'receive_pack' bypasses the unsafe option checks and allows arbitrary command execution when passed to methods such as Repo.clone_from(), Remote.fetch(), Remote.pull(), or Remote.push(). This vulnerability is addressed in version 3.0.4.
References
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-rpm5-65cw-6hj4 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-42215 (opens in a new tab)
- github.com/gitpython-developers/GitPython (opens in a new tab)
- github.com/gitpython-developers/GitPython/releases/tag/3.1.47 (opens in a new tab)