
CVE catalog
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 d
- Severity
- High · CVSS 8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.75% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | python-git | sid | 3.2.1-1 | fixed |
| Debian | python-git | forky | 3.2.1-1 | fixed |
| Debian | python-git | trixie | 3.1.44-1 | vulnerable |
| Debian | python-git | bookworm | 3.1.30-1+deb12u2 | vulnerable |
| Cpe | python-git | Not reported | 3.1.37-3ubuntu0.1~esm2 | fixed |
| Cpe | python-git-doc | Not reported | 3.1.37-3ubuntu0.1~esm2 | fixed |
| Cpe | python3-git | Not reported | 3.1.37-3ubuntu0.1~esm2 | fixed |
| Cpe | python-git | Not reported | Not reported | vulnerable |
| Cpe | gitpython | Not reported | 3.1.47 | fixed |
| PyPI | gitpython | Not reported | 3.1.47 | fixed |
| Suse | python-GitPython | linux enterprise module for python 3 15 sp7 | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | fixed |
| Suse | python-GitPython | linux enterprise high performance computing 15 sp4-espos | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | fixed |
| Suse | python-GitPython | linux enterprise high performance computing 15 sp4-ltss | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | fixed |
| Suse | python-GitPython | linux enterprise high performance computing 15 sp5-espos | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | fixed |
| Suse | python-GitPython | linux enterprise high performance computing 15 sp5-ltss | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | fixed |
| Suse | python-GitPython | linux enterprise server 15 sp4-ltss | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | fixed |
| Suse | python-GitPython | linux enterprise server 15 sp5-ltss | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | fixed |
| Suse | python-GitPython | linux enterprise server 15 sp6-ltss | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | fixed |
| Suse | python-GitPython | linux enterprise server for sap applications 15 sp4 | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | fixed |
| Suse | python-GitPython | linux enterprise server for sap applications 15 sp5 | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | fixed |
| Suse | python-GitPython | linux enterprise server for sap applications 15 sp6 | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | fixed |
| Opensuse | python-GitPython | tumbleweed | 3.1.49-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | python-git | source | sid | 3.1.50-1 | not yet assigned | Not reported | [1135349] |
| Debian | python-git | source | forky | 3.1.50-1 | not yet assigned | Not reported | [1135349] |
| Debian | python-git | source | trixie | (unfixed) | not yet assigned | Not reported | [1135349] |
| Debian | python-git | source | bookworm | (unfixed) | not yet assigned | Not reported | [1135349] |
| Cpe | python-git | cpe | Not reported | 3.1.37-3ubuntu0.1~esm2 | Not reported | Not reported | Not reported |
| Cpe | python-git-doc | cpe | Not reported | 3.1.37-3ubuntu0.1~esm2 | Not reported | Not reported | Not reported |
| Cpe | python3-git | cpe | Not reported | 3.1.37-3ubuntu0.1~esm2 | Not reported | Not reported | Not reported |
| Cpe | gitpython | cpe | Not reported | 3.1.47 | Not reported | Not reported | Not reported |
| PyPI | gitpython | PyPI | Not reported | 3.1.47 | Not reported | GHSA-RPM5-65CW-6HJ4 | Not reported |
| Suse | python-GitPython | rpm | linux enterprise module for python 3 15 sp7 | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | Not reported | SUSE-SU-2026:4072-1 | Not reported |
| Suse | python-GitPython | rpm | linux enterprise high performance computing 15 sp4-espos | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | Not reported | SUSE-SU-2026:4072-1 | Not reported |
| Suse | python-GitPython | rpm | linux enterprise high performance computing 15 sp4-ltss | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | Not reported | SUSE-SU-2026:4072-1 | Not reported |
| Suse | python-GitPython | rpm | linux enterprise high performance computing 15 sp5-espos | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | Not reported | SUSE-SU-2026:4072-1 | Not reported |
| Suse | python-GitPython | rpm | linux enterprise high performance computing 15 sp5-ltss | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | Not reported | SUSE-SU-2026:4072-1 | Not reported |
| Suse | python-GitPython | rpm | linux enterprise server 15 sp4-ltss | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | Not reported | SUSE-SU-2026:4072-1 | Not reported |
| Suse | python-GitPython | rpm | linux enterprise server 15 sp5-ltss | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | Not reported | SUSE-SU-2026:4072-1 | Not reported |
| Suse | python-GitPython | rpm | linux enterprise server 15 sp6-ltss | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | Not reported | SUSE-SU-2026:4072-1 | Not reported |
| Suse | python-GitPython | rpm | linux enterprise server for sap applications 15 sp4 | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | Not reported | SUSE-SU-2026:4072-1 | Not reported |
| Suse | python-GitPython | rpm | linux enterprise server for sap applications 15 sp5 | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | Not reported | SUSE-SU-2026:4072-1 | Not reported |
| Suse | python-GitPython | rpm | linux enterprise server for sap applications 15 sp6 | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | Not reported | SUSE-SU-2026:4072-1 | Not reported |
| Opensuse | python-GitPython | rpm | tumbleweed | 3.1.49-1.1 | Not reported | OPENSUSE-SU-2026:10758-1 | Not reported |
Notes
[trixie] python-git: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-git]Affected
Source package: [python-git]
Details (2)
3.1.30-1+deb12u2· all · bookwormAffected
nvd · python-git · debian · bookworm; nvd · python-git · debian · 12
3.1.30-1+deb12u2· all · bookwormAffected
nvd · python-git · debian · bookworm; nvd · python-git · debian · 12
- [python-git-doc]Affected
Source package: [python-git]
Details (2)
3.1.30-1+deb12u2· all · bookwormAffected
nvd · python-git · debian · bookworm; nvd · python-git · debian · 12
3.1.30-1+deb12u2· all · bookwormAffected
nvd · python-git · debian · bookworm; nvd · python-git · debian · 12
[Debian 13 (Trixie)]
- [python3-git]Affected
Source package: [python-git]
Details (2)
3.1.44-1· all · trixieAffected
nvd · python-git · debian · 13
3.1.44-1· all · trixieAffected
nvd · python-git · debian · 13
- [python-git-doc]Affected
Source package: [python-git]
Details (2)
3.1.44-1· all · trixieAffected
nvd · python-git · debian · 13
3.1.44-1· all · trixieAffected
nvd · python-git · debian · 13
[openSUSE Tumbleweed]
- [python313-GitPython]Unknown
Source package: [python-GitPython]
Details (1)
3.1.61-1.1· noarch · tumbleweedUnknown · Fixed:
3.1.49-1.1Version impact unknown
nvd · python-GitPython · opensuse · tumbleweed
- [python314-GitPython]Unknown
Source package: [python-GitPython]
Details (1)
3.1.61-1.1· noarch · tumbleweedUnknown · Fixed:
3.1.49-1.1Version impact unknown
nvd · python-GitPython · opensuse · tumbleweed
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2026_4072-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-42215]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-42215]
- [https://osv.dev/vulnerability/GHSA-rpm5-65cw-6hj4]
- [https://osv.dev/vulnerability/SUSE-SU-2026:4072-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:10758-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-42215]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42215.json]
- [https://ubuntu.com/security/notices/USN-8303-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2933.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]