CVE-2026-42215
published high CVSS 3.1 · 8.8GitPython: Command injection via Git options bypass
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gitpython-developers | — | GitPython>= 3.1.30, < 3.1.47 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | py3-gitpython | Fixed | 3.1.49-r0 | Package fix record |
| Debian | bookworm | python-git | Advisory build | 3.1.30-1+deb12u3 | DLA-4872-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| Ubuntu | bionic | python-git | Advisory build | 2.1.8-1ubuntu0.1~esm4 | USN-8303-1 |
| Alpine Linux | v3.23 | py3-gitpython | Fixed | 3.1.49-r0 | Package fix record |
| Alpine Linux | v3.24 | py3-gitpython | Fixed | 3.1.49-r0 | Package fix record |
| Debian | trixie | python-git | Advisory build | 3.1.44-1+deb13u1 | DSA-6594-1 |
Show 30 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP5 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| SUSE / openSUSE | SLE-16 | python313-GitPythonnoarch | Advisory build | 3.1.44-160000.3.1 | SUSE-SU-2026:21813-1 |
| SUSE / openSUSE | SLE-3-SP7 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-GitPythonnoarch | Advisory build | 3.1.44-160000.3.1 | OPENSUSE-SU-2026:20777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-GitPythonaarch64 | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-GitPythonppc64le | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-GitPythons390x | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-GitPythonx86_64 | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-GitPythonaarch64 | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-GitPythonppc64le | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-GitPythons390x | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-GitPythonx86_64 | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-GitPythonaarch64 | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-GitPythonppc64le | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-GitPythons390x | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-GitPythonx86_64 | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| Ubuntu | bionic | python3-git | Advisory build | 2.1.8-1ubuntu0.1~esm4 | USN-8303-1 |
| Ubuntu | focal | python-git | Advisory build | 3.0.7-1ubuntu0.1~esm4 | USN-8303-1 |
| Ubuntu | focal | python3-git | Advisory build | 3.0.7-1ubuntu0.1~esm4 | USN-8303-1 |
| Ubuntu | jammy | python-git | Advisory build | 3.1.24-1ubuntu0.1~esm3 | USN-8303-1 |
| Ubuntu | jammy | python3-git | Advisory build | 3.1.24-1ubuntu0.1~esm3 | USN-8303-1 |
| Ubuntu | noble | python-git | Advisory build | 3.1.37-3ubuntu0.1~esm2 | USN-8303-1 |
| Ubuntu | noble | python3-git | Advisory build | 3.1.37-3ubuntu0.1~esm2 | USN-8303-1 |
| Ubuntu | resolute | python-git | Advisory build | 3.1.46-1ubuntu0.1~esm1 | USN-8303-1 |
| Ubuntu | resolute | python3-git | Advisory build | 3.1.46-1ubuntu0.1~esm1 | USN-8303-1 |
| Ubuntu | trusty | python-git | Advisory build | 0.3.2~RC1-3ubuntu0.1~esm3 | USN-8303-1 |
| Ubuntu | xenial | python-git | Advisory build | 1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm4 | USN-8303-1 |
| Ubuntu | xenial | python3-git | Advisory build | 1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm4 | USN-8303-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gitpython-developers | GitPython | >= 3.1.30, < 3.1.47 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-78 CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
2Provider assertions
2GitHub_M · cna
GitPython: Command injection via Git options bypass
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 46a1dae5b415308f481661f28d17ab055578a7ee5a09aaa72a3e9485326817d8
- Ingested
- 23 Sep 2026, 09:14:00 UTC
- Source record
- Official CVE record