Skip to content
Fencer Vulns
high 8.2

CVE-2026-76222 json

GitPython before 3.1.58 Path Traversal via .gitmodules Submodule Name

published 2026-08-07 3 mo ago modified 2026-10-08 31 d ago also GHSA-hmq2-w58f-27jc , PYSEC-2026-3784 , EUVD-2026-62463

cvss
8.2
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 36%
public exploits
0
none known

Summary

GitPython before 3.1.58 fails to validate submodule names from .gitmodules files, allowing attackers to create Git repositories at arbitrary filesystem paths outside the intended clone directory. Attackers can craft malicious repositories with traversal sequences in submodule names that GitPython processes during submodule initialization, creating attacker-controlled Git repositories at escaped filesystem locations.

Patch / fix

  • pypi gitpython 3.1.58
  • gitpython-developers GitPython 3.1.58
  • python-git Debian 12 3.1.30-1+deb12u3
  • python-git Debian 13 3.1.44-1+deb13u1
  • python-git Debian 14 3.1.61-1

debian advisories DEBIAN-CVE-2026-76222

  • rubygem-jwt satellite utils 6.19, satellite capsule 6.19, satellite 6.19 2.10.3-1.el9sat
  • ansible-core satellite maintenance 6.19, satellite capsule 6.19, satellite 6.19 1:2.16.19-1.el9sat
  • ansible-test satellite capsule 6.19, satellite 6.19 1:2.16.19-1.el9sat
  • openvox-server satellite capsule 6.19, satellite 6.19 8.15.2-1.el9sat
  • python3.12-aiohttp satellite capsule 6.19, satellite 6.19 3.14.3-1.el9pc
  • python3.12-gitpython satellite capsule 6.19, satellite 6.19 3.1.59-1.el9pc

red hat advisories RHSA-2026:63385

  • python-GitPython SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 3.1.34.1693646983.2a2ae77-150400.9.8.1

suse advisories SUSE-SU-2026:4072-1

  • python-GitPython openSUSE Leap 16.0 3.1.44-160000.4.1
  • python-GitPython openSUSE Tumbleweed 3.1.59-2.1

opensuse advisories openSUSE-SU-2026:21874-1openSUSE-SU-2026:11566-1

  • py3-gitpython Alpine 3.24 3.1.61-r0

alpine advisories ALPINE-CVE-2026-76222

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-76222 updated cvss 8.2

gitpython: GitPython: Arbitrary file creation via path traversal in .gitmodules submodule names

  • Red Hat Exploit Intelligence exploit-intelligence/vulnerability-analysis-rhel9, exploit-intelligence-tech-preview/vulnerability-analysis-rhel9
    affected: workaround, no fix available, no fix planned “There is no mitigation beyond not cloning or initializing git submodules from untrusted repositories. Upgrade to GitPython 3.1.58 or later when it becomes available.”
  • Red Hat AI Inference Server rhaiis/vllm-cpu-rhel9, rhaiis/vllm-tpu-rhel9 Red Hat Ansible Automation Platform 2 ansible-automation-platform-24/hub-rhel8, ansible-automation-platform-24/controller-rhel8
    affected: workaround, no fix planned “There is no mitigation beyond not cloning or initializing git submodules from untrusted repositories. Upgrade to GitPython 3.1.58 or later when it becomes available.”
  • Red Hat Enterprise Linux AI (RHEL AI) 3 rhelai3/bootc-cuda-rhel9, rhelai3/bootc-rocm-rhel9, rhelai3/bootc-gaudi-rhel9, rhelai3/disk-image-cuda-rhel9
    affected: workaround, no fix available, no fix planned “There is no mitigation beyond not cloning or initializing git submodules from untrusted repositories. Upgrade to GitPython 3.1.58 or later when it becomes available.”
  • Red Hat OpenShift AI (RHOAI) rhoai/odh-mlflow-rhel9, rhoai/odh-th06-cpu-torch291-py312-rhel9, rhoai/odh-th06-cuda130-torch291-py312-rhel9 Red Hat OpenStack Platform 16.2 rhosp-rhel8/openstack-mistral-api, rhosp-rhel8/openstack-mistral-base, rhosp-rhel8/openstack-tripleoclient, rhosp-rhel8/openstack-mistral-engine, rhosp-rhel8/openstack-nova-scheduler, rhosp-rhel8/openstack-mistral-executor, +1 more Red Hat Satellite 6 python-gitpython 3.1.40-1.el9ap
    affected: workaround, no fix available “There is no mitigation beyond not cloning or initializing git submodules from untrusted repositories. Upgrade to GitPython 3.1.58 or later when it becomes available.”
  • Red Hat Ansible Automation Platform 2.5 ansible-automation-platform-25/controller-rhel8 1789607021
    fixed: vendor fix “There is no mitigation beyond not cloning or initializing git submodules from untrusted repositories. Upgrade to GitPython 3.1.58 or later when it becomes available.” RHSA-2026:71210
  • Red Hat Ansible Automation Platform 2.6 ansible-automation-platform-26/controller-rhel9 1789673739
    fixed: vendor fix “There is no mitigation beyond not cloning or initializing git submodules from untrusted repositories. Upgrade to GitPython 3.1.58 or later when it becomes available.” RHSA-2026:71179
  • Red Hat Ansible Automation Platform 2.7 ansible-automation-platform-27/hub-rhel9 1791254555, ansible-automation-platform-27/controller-rhel9 1789580684
    fixed: vendor fix “There is no mitigation beyond not cloning or initializing git submodules from untrusted repositories. Upgrade to GitPython 3.1.58 or later when it becomes available.” RHSA-2026:71177
  • Red Hat OpenShift AI 2.25 rhoai/odh-feature-server-rhel9 1792148523, rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9 1791870787, rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9 1791867222, rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9 1791903144, rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9 1791867191, rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9 1791867238, +5 more
    fixed: vendor fix “There is no mitigation beyond not cloning or initializing git submodules from untrusted repositories. Upgrade to GitPython 3.1.58 or later when it becomes available.” RHSA-2026:87410
show 9 more
  • Red Hat OpenShift AI 3.4 rhoai/odh-feature-server-rhel9 1791863220, rhoai/odh-th06-cpu-torch210-py312-rhel9 1791874335, rhoai/odh-th06-rocm64-torch291-py312-rhel9 1791872119, rhoai/odh-th06-cuda130-torch210-py312-rhel9 1791961113, rhoai/odh-training-cuda128-torch29-py312-rhel9 1791786619, rhoai/odh-trustyai-nemo-guardrails-server-rhel9 1791556128, +17 more
    fixed: vendor fix “There is no mitigation beyond not cloning or initializing git submodules from untrusted repositories. Upgrade to GitPython 3.1.58 or later when it becomes available.” RHSA-2026:84734
  • Red Hat OpenShift AI 3.5 rhoai/odh-th-torch-cpu-py312-rhel9 1791926611, rhoai/odh-th-torch-cuda-py312-rhel9 1791927642, rhoai/odh-th-torch-rocm-py312-rhel9 1791925861, rhoai/odh-training-cuda128-torch29-py312-rhel9 1789529851, rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9 1791816462, rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9 1791951049, +15 more
    fixed: vendor fix “There is no mitigation beyond not cloning or initializing git submodules from untrusted repositories. Upgrade to GitPython 3.1.58 or later when it becomes available.” RHSA-2026:86891
  • Red Hat Satellite 6.18 satellite/iop-vmaas-rhel9 1789611858, satellite/iop-vulnerability-engine-rhel9 1789637082
    fixed: vendor fix “There is no mitigation beyond not cloning or initializing git submodules from untrusted repositories. Upgrade to GitPython 3.1.58 or later when it becomes available.” RHSA-2026:68764
  • Red Hat Satellite 6.19 satellite/iop-vmaas-rhel9 1789611998, satellite/iop-vulnerability-engine-rhel9 1789607605
    fixed: vendor fix “There is no mitigation beyond not cloning or initializing git submodules from untrusted repositories. Upgrade to GitPython 3.1.58 or later when it becomes available.” RHSA-2026:68780
  • Red Hat Satellite 6.19 for RHEL 9 python3.12-gitpython 3.1.59-1.el9pc
    fixed: vendor fix “There is no mitigation beyond not cloning or initializing git submodules from untrusted repositories. Upgrade to GitPython 3.1.58 or later when it becomes available.” RHSA-2026:63385
  • Red Hat Migration Toolkit for Applications 8 mta/mta-solution-server-rhel9
    not affected: component not present
  • Red Hat Pen Drive Powered by Red Hat Lightspeed pen-drive/pen-drive-scanner-rhel9 Red Hat Ansible Automation Platform 2 python-gitpython 3.1.40-1.el9ap, python3x-gitpython 3.1.40-1.el8ap, python3.11-gitpython 3.1.41-1.el9ap, python3.12-gitpython 3.1.41-2.el9ap, ansible-automation-platform-25/hub-rhel8, ansible-automation-platform-26/hub-rhel9 Red Hat Ansible Automation Platform 2.5 ansible-automation-platform-25/hub-rhel8 1789606395, ansible-automation-platform-25/gateway-rhel8 1789605572, ansible-automation-platform-25/hub-web-rhel8 1789690469, ansible-automation-platform-25/receptor-rhel8 1789590330, ansible-automation-platform-25/de-minimal-rhel8 1789634812, ansible-automation-platform-25/ee-minimal-rhel8 1789652412, +20 more Red Hat Ansible Automation Platform 2.6 ansible-automation-platform-26/hub-rhel9 1789611274, ansible-automation-platform-26/gateway-rhel9 1789666472, ansible-automation-platform-26/hub-web-rhel9 1789615881, ansible-automation-platform-26/receptor-rhel9 1789610120, ansible-automation-platform-26/mcp-tools-rhel9 1789609282, ansible-automation-platform-26/de-minimal-rhel9 1789658734, +24 more Red Hat Ansible Automation Platform 2.7 ansible-automation-platform-27/hub-rhel9 1789572632, ansible-automation-platform-27/gateway-rhel9 1789579764, ansible-automation-platform-27/gateway-rhel9 1791257377, ansible-automation-platform-27/hub-web-rhel9 1789575016, ansible-automation-platform-27/hub-web-rhel9 1791264503, ansible-automation-platform-27/receptor-rhel9 1789519651, +57 more Red Hat Hardened Images rust 1.97.1-2.hum1, llvm 22.1.8-4.1.hum1, llvm21 21.1.8-8.hum1, swift-lang 6.3.3-0.1.1.hum1
    +3 more products
    Red Hat OpenShift AI 2.25 rhoai/odh-rhel9-operator 1792570619, rhoai/odh-vllm-cpu-rhel9 1792018436, rhoai/odh-dashboard-rhel9 1791853525, rhoai/odh-modelmesh-rhel9 1790881700, rhoai/odh-operator-bundle 1792571069, rhoai/odh-vllm-cuda-rhel9 1791358976, +55 more Red Hat OpenShift AI 3.4 rhoai/odh-cli-rhel9 1791509689, rhoai/rhai-cli-rhel9 1791509689, rhoai/odh-automl-rhel9 1791535789, rhoai/odh-mlflow-rhel9 1791865967, rhoai/odh-autorag-rhel9 1791557539, rhoai/odh-trainer-rhel9 1791869783, +77 more Red Hat OpenShift AI 3.5 rhoai/odh-cli-rhel9 1789525149, rhoai/odh-cli-rhel9 1791945905, rhoai/rhai-cli-rhel9 1789525149, rhoai/rhai-cli-rhel9 1791945905, rhoai/odh-automl-rhel9 1789363166, rhoai/odh-automl-rhel9 1791916705, +211 more
    not affected: vulnerable code not present
  • Red Hat OpenStack Platform 16.2 python3-GitPython Red Hat OpenStack Platform 17.1 GitPython, python3-GitPython
    not affected: vulnerable code not in execute path
  • Red Hat Satellite 6.19 for RHEL 9 satellite 6.19.4-1.el9sat, foreman 3.18.0.10-1.el9sat, rubygem-jwt 2.10.3-1.el9sat, ansible-core 2.16.19-1.el9sat, ansible-test 2.16.19-1.el9sat, openvox-agent 8.28.1-1.el9sat, +26 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
2 mo ago

Exploit prediction

0.42% chance of exploitation in the next 30 days, higher than 36% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hmq2-w58f-27jc referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 4.0 8.4 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:H/SA:L
CNA 3.1 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:L
CNA 4.0 8.4 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:H/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
GitHub 3.1 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:L

Affected packages

ecosystem package affected fixed in
pypi gitpython
<3.1.58
3.1.58

Affected products

  • gitpython-developers GitPython

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory
  • CWE-73 External Control of File Name or Path

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.