Vulnerability Details 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.
Exploit prediction scoring system (EPSS) score
EPSS Score 0.0
EPSS Ranking 10.5%
CVSS Severity
CVSS v3 Score 8.8
Products affected by CVE-2026-42215
-
cpe:2.3:a:gitpython_project:gitpython:3.1.30
-
cpe:2.3:a:gitpython_project:gitpython:3.1.31
-
cpe:2.3:a:gitpython_project:gitpython:3.1.32
-
cpe:2.3:a:gitpython_project:gitpython:3.1.33
-
cpe:2.3:a:gitpython_project:gitpython:3.1.34
-
cpe:2.3:a:gitpython_project:gitpython:3.1.35
-
cpe:2.3:a:gitpython_project:gitpython:3.1.36
-
cpe:2.3:a:gitpython_project:gitpython:3.1.37
-
cpe:2.3:a:gitpython_project:gitpython:3.1.38
-
cpe:2.3:a:gitpython_project:gitpython:3.1.40
-
cpe:2.3:a:gitpython_project:gitpython:3.1.41
-
cpe:2.3:a:gitpython_project:gitpython:3.1.42
-
cpe:2.3:a:gitpython_project:gitpython:3.1.43
-
cpe:2.3:a:gitpython_project:gitpython:3.1.44
-
cpe:2.3:a:gitpython_project:gitpython:3.1.45
-
cpe:2.3:a:gitpython_project:gitpython:3.1.46