CVSS 3.1
8.8 highCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HHigh (8.8) in gitpython project gitpython. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in gitpython 3.1.47.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hgitpython (PyPI): fixed in 3.1.47Explain CVE-2026-42215 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42215?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42215?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42215 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| gitpython_project:gitpython | from 3.1.30 before 3.1.47 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-rpm5-65cw-6hj4 | PyPI | gitpython | >=3.1.30 <3.1.47 | 3.1.47 |
| PYSEC-2026-2160 | PyPI | gitpython | >=3.1.30 <3.1.47 | 3.1.47 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | python-git | 3.1.30-1+deb12u3 | DEBIAN-CVE-2026-42215 DLA-4872-1 |
| Debian | 13 | python-git | 3.1.44-1+deb13u1 | DEBIAN-CVE-2026-42215 DSA-6594-1 |
| Debian | 14 | python-git | 3.1.50-1 | DEBIAN-CVE-2026-42215 |
| Ubuntu | 25.10, 26.10 | python-git | no fix listed | UBUNTU-CVE-2026-42215 |
| Ubuntu | Pro:14.04:LTS | python-git | 0.3.2~RC1-3ubuntu0.1~esm3 | UBUNTU-CVE-2026-42215 USN-8303-1 |
| Ubuntu | Pro:16.04:LTS | python-git | 1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm4 | UBUNTU-CVE-2026-42215 USN-8303-1 |
| Ubuntu | Pro:18.04:LTS | python-git | 2.1.8-1ubuntu0.1~esm4 | UBUNTU-CVE-2026-42215 USN-8303-1 |
| Ubuntu | Pro:20.04:LTS | python-git | 3.0.7-1ubuntu0.1~esm4 | UBUNTU-CVE-2026-42215 USN-8303-1 |
| Ubuntu | Pro:22.04:LTS | python-git | 3.1.24-1ubuntu0.1~esm3 | UBUNTU-CVE-2026-42215 USN-8303-1 |
| Ubuntu | Pro:24.04:LTS | python-git | 3.1.37-3ubuntu0.1~esm2 | UBUNTU-CVE-2026-42215 USN-8303-1 |
| Ubuntu | Pro:26.04:LTS | python-git | 3.1.46-1ubuntu0.1~esm1 | UBUNTU-CVE-2026-42215 USN-8303-1 |
| Red Hat | satellite:6.19::el9, satellite_capsule:6.19::el9 | ansible-core, ansible-test | 1:2.16.19-1.el9sat | RHSA-2026:63385 |
| Red Hat | satellite:6.19::el9, satellite_capsule:6.19::el9 | openvox-server | 0:8.15.2-1.el9sat | RHSA-2026:63385 |
| Red Hat | satellite:6.19::el9, satellite_capsule:6.19::el9 | python3.12-aiohttp, python3.12-aiohttp-debuginfo, python3.12-aiohttp-debugsource | 0:3.14.3-1.el9pc | RHSA-2026:63385 |
| Red Hat | satellite:6.19::el9, satellite_capsule:6.19::el9 | python3.12-gitpython | 0:3.1.59-1.el9pc | RHSA-2026:63385 |
| Red Hat | satellite:6.19::el9, satellite_capsule:6.19::el9, satellite_utils:6.19::el9 | rubygem-jwt | 0:2.10.3-1.el9sat | RHSA-2026:63385 |
| Red Hat | satellite_maintenance:6.19::el9 | ansible-core | 1:2.16.19-1.el9sat | RHSA-2026:63385 |
| SUSE | Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 more | python-GitPython | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| openSUSE | Tumbleweed | python-GitPython | 3.1.49-1.1 | openSUSE-SU-2026:10758-1 |
| Alpine | v3.23, v3.24 | py3-gitpython | 3.1.49-r0 | ALPINE-CVE-2026-42215 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Important.
This is an Important arbitrary command execution flaw in GitPython, a library utilized across several Red Hat products. The vulnerability arises from an incomplete security check that allows specially crafted Python keyword arguments, such as `upload_pack` or `receive_pack`, to bypass intended safeguards against dangerous Git options. This bypass enables an attacker to execute arbitrary commands on systems where applications process untrusted input through GitPython's repository interaction functions, potentially leading to system compromise, credential theft, or unauthorized data modification.
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | python3.12-gitpython-0:3.1.50-1.el8ap | Fixed 2026-07-20 | RHSA-2026:42078 |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | python3.12-gitpython-0:3.1.50-1.el9ap | Fixed 2026-07-20 | RHSA-2026:42078 |
| Red Hat Ansible Automation Platform 2.6 for RHEL 9 | python3.12-gitpython-0:3.1.50-1.el9ap | Fixed 2026-07-20 | RHSA-2026:42079 |
| Red Hat Satellite 6.16 for RHEL 8 | foreman-0:3.12.0.23-1.el8sat | Fixed 2026-10-01 | RHSA-2026:74506 |
| Red Hat Satellite 6.16 for RHEL 8 | python-dynaconf-0:3.2.13-1.el8pc | Fixed 2026-10-01 | RHSA-2026:74506 |
| Red Hat Satellite 6.16 for RHEL 8 | python-gitpython-0:3.1.62-1.el8pc | Fixed 2026-10-01 | RHSA-2026:74506 |
| Red Hat Satellite 6.16 for RHEL 8 | python-lxml-0:4.9.2-5.el8pc | Fixed 2026-10-01 | RHSA-2026:74506 |
| Red Hat Satellite 6.16 for RHEL 8 | python-pulpcore-0:3.49.39-4.el8pc | Fixed 2026-10-01 | RHSA-2026:74506 |
| Red Hat Satellite 6.16 for RHEL 8 | python-sqlparse-0:0.6.0-1.el8pc | Fixed 2026-10-01 | RHSA-2026:74506 |
| Red Hat Satellite 6.16 for RHEL 8 | rubygem-foreman_remote_execution-0:13.2.8-2.el8sat | Fixed 2026-10-01 | RHSA-2026:74506 |
| Exploit Intelligence | exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 | Affected | |
| Migration Toolkit for Applications 8 | mta/mta-solution-server-rhel9 | Not affected | |
| Pen Drive Powered by Red Hat Lightspeed | pen-drive/pen-drive-scanner-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaiis/vllm-cpu-rhel9 | Will not fix | |
| Red Hat AI Inference Server | rhaiis/vllm-cuda-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaiis/vllm-rocm-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaiis/vllm-tpu-rhel9 | Will not fix | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/controller-rhel8 | Will not fix | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/hub-rhel8 | Will not fix | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/hub-rhel8 | Not affected | |
| 130 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-42215.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.