CVSS 4.0
7.1 highCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NHigh (7.1) in gitpython project gitpython. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in gitpython 3.1.58.
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:Ngitpython (PyPI): fixed in 3.1.58Explain CVE-2026-76217 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-76217?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-76217?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-76217 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 CNA's record in the CVE List.
| Product | Affected |
|---|---|
| gitpython-developers GitPython | before 3.1.58 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-hh9p-6wh2-4mfc | PyPI | gitpython | <3.1.58 | 3.1.58 |
| PYSEC-2026-3841 | PyPI | gitpython | <3.1.58 | 3.1.58 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | python-git | 3.1.30-1+deb12u3 | DEBIAN-CVE-2026-76217 DLA-4872-1 |
| Debian | 13 | python-git | 3.1.44-1+deb13u1 | DEBIAN-CVE-2026-76217 DSA-6594-1 |
| Debian | 14 | python-git | 3.1.61-1 | DEBIAN-CVE-2026-76217 |
| Ubuntu | 26.10, Pro:14.04:LTS, Pro:16.04:LTS and 5 more | python-git | no fix listed | UBUNTU-CVE-2026-76217 |
| 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 | Leap 16.0 | python-GitPython | 3.1.44-160000.4.1 | openSUSE-SU-2026:21874-1 |
| openSUSE | Tumbleweed | python-GitPython | 3.1.59-2.1 | openSUSE-SU-2026:11566-1 |
| Alpine | v3.24 | py3-gitpython | 3.1.61-r0 | ALPINE-CVE-2026-76217 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 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 · SUSE · openSUSE · Alpine.
Red Hat rates this Moderate.
GitPython before 3.1.58 does not validate options passed to the underlying `git rm` and `git checkout` commands in IndexFile.remove() and Head.checkout(). An attacker able to control the path/pathspec argument passed to these methods can inject the `--pathspec-from-file` and `--pathspec-file-nul` options and read arbitrary files accessible to the process, with the file contents returned in GitCommandError.stderr.
Exploitation requires an application to pass untrusted, attacker-controlled input directly as the path/pathspec argument to these GitPython methods; in normal use these arguments are supplied by the application or developer rather than by a remote adversary. Red Hat products that bundle GitPython use it as an internal build and automation helper with developer-controlled arguments and do not expose these parameters to untrusted input, so the vulnerable code cannot be controlled by an adversary in those products, which are therefore not affected. The GitPython library packages shipped in Red Hat OpenStack Platform contain the vulnerable code; those affected streams are out of support scope for this fix. Red Hat rates the impact of this flaw as Moderate.
Applications using GitPython should not pass untrusted or attacker-controlled input directly as the path/pathspec argument to IndexFile.remove() or Head.checkout(), and should reject any such value beginning with a dash ("-") so that it cannot be interpreted as a git option. Updating GitPython to version 3.1.58 or later, which validates these options, resolves the issue.
| Product | Package | State | Advisory |
|---|---|---|---|
| Exploit Intelligence | exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 | Not affected | |
| Exploit Intelligence | exploit-intelligence/vulnerability-analysis-rhel9 | Not 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 | Not affected | |
| Red Hat AI Inference Server | rhaiis/vllm-tpu-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/controller-rhel8 | Out of support scope | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/hub-rhel8 | Out of support scope | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/controller-rhel8 | Out of support scope | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/hub-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/controller-rhel9 | Fix deferred | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/hub-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-27/controller-rhel9 | Fix deferred | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-27/hub-rhel9 | Fix deferred | |
| Red Hat Ansible Automation Platform 2 | python3.11-gitpython | Fix deferred | |
| Red Hat Ansible Automation Platform 2 | python3.12-gitpython | Out of support scope | |
| Red Hat Ansible Automation Platform 2 | python3x-gitpython | Out of support scope | |
| Red Hat Ansible Automation Platform 2 | python-gitpython | Out of support scope | |
| Red Hat Enterprise Linux AI (RHEL AI) 3 | rhelai3/bootc-cuda-rhel9 | Not affected | |
| Red Hat Enterprise Linux AI (RHEL AI) 3 | rhelai3/bootc-gaudi-rhel9 | Not affected | |
| 48 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-76217.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.