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 in Chainguard
- 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