RCE in Gitpython-Developers Gitpython
CVE-2026-42215
GitPython is a python library used to interact with Git repositories. From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git options such as --upload-pack and --receive-pack by default, but the equivalent Python kwargs upload_pack and receive_pack bypass that check. If an application passes attacker-controlled kwargs into Repo.clone_from(), Remote.fetch(), Remote.pull(), or Remote.push(), this leads to arbitrary command execution even when allow_unsafe_options is left at its default value of False. This issue has been patched in version 3.1.47.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.009 (59.3th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 59th percentile — 59.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.009 · newest: 0.009 · change: 0.000
Affected products
- Gitpython-Developers Gitpython — versions >= 3.1.30, < 3.1.47
- Gitpython Project
Weakness classification (CWE)
References
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-rpm5-65cw-6h… (Exploit, Vendor Advisory)
- github.com/gitpython-developers/GitPython/releases/tag/3.1.47 (Patch, Release Notes)
Frequently asked questions
- What is CVE-2026-42215?
- CVE-2026-42215 is a high-severity vulnerability in Gitpython-Developers Gitpython, classified under OS Command Injection. CVSS score: 8.8/10. Published 2026-05-07.
- How severe is CVE-2026-42215?
- High severity. CVSS v3 base score is 8.8 out of 10.