Vulnerability
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.
36 advisories report this vulnerability, across 10 ecosystems.
Advisories
-
ALPINE-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…
- ALPINE-EDGE-CVE-2026-42215
- CGA-36f4-q2xc-4mrm
- CGA-5fhg-8jgp-9h8j
- CGA-5frm-5q55-39hw
- CGA-6q5g-r7m5-p2h2
- CGA-8w65-44qv-r5cj
- CGA-8wjg-rm5q-rgcj
- CGA-9w48-226r-mggw
- CGA-cqrp-4cxp-58vq
- CGA-j988-cq99-fmmp
- CGA-jcj2-247q-w8cv
- CGA-jrgh-m3vj-xr9c
- CGA-q845-jfm3-83jj
- CGA-rpxw-xpj8-xfpv
- CGA-v2m8-hrvg-w5vg
- CGA-vfp5-gxcx-7xwv
- CGA-vwm7-c3g3-g2w7
-
DEBIAN-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…
-
DLA-4872-1
python-git - security update
-
DSA-6594-1
python-git - security update
-
GHSA-rpm5-65cw-6hj4
GitPython has Command Injection via Git options bypass
-
OESA-2026-2306
python-GitPython security update
-
OESA-2026-2307
python-GitPython security update
-
OESA-2026-2308
python-GitPython security update
-
PYSEC-2026-2160
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…
-
RHSA-2026:42078
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update
-
RHSA-2026:42079
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update
-
RHSA-2026:63385
Red Hat Security Advisory: Satellite 6.19.4 Async Update
-
RHSA-2026:74504
Red Hat Security Advisory: Satellite 6.18.10 Async Update
-
RHSA-2026:74505
Red Hat Security Advisory: Satellite 6.17.12 Async Update
-
RHSA-2026:74506
Red Hat Security Advisory: Satellite 6.16.14 Async Update
-
SUSE-SU-2026:4072-1
Security update for python-GitPython
-
UBUNTU-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…
-
USN-8303-1
python-git vulnerabilities
-
openSUSE-SU-2026:10758-1
python311-GitPython-3.1.49-1.1 on GA media