Skip to content

CVE-2026-114145 GitPython validates a submodule's ".git" path only after cloning into it (RCE)

HighCVSS 7.5 EPSS 0.42%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

Description

GitPython is a python library used to interact with Git repositories. Prior to 3.2.1, create_submodule() in git/objects/submodule/base.py accepts an attacker-influenced submodule path such as .git/hooks and invokes _clone_repo() before safely rejecting the destination. In 3.1.x, _validate_repo_path() does not exist and the call succeeds silently, while in 3.2.0 and later affected revisions the check in git/index/base.py raises ValueError only after the clone has written to disk and does not remove the planted file. An attacker-controlled submodule can therefore place an executable post-checkout hook that a later Git operation executes. Exploitation requires an application to accept an untrusted submodule path and a clone destination such as .git/hooks that is empty enough for Git to clone into it, which commonly means that default sample hooks are absent. This issue is fixed in version 3.2.1.

Upgrade path

71 packages: 20 fixed, 50 with no fix yet.

PackageAffectedFixed inStatus
redhat/ansible-automation-platform-24/controller-rhel8(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-25/controller-rhel8(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/controller-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/hub-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-27/controller-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-27/hub-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/automation-controller(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/exploit-intelligence/vulnerability-analysis-rhel9(Red Hat exploit_intelligence 0) All versions No fix listed No fix yet
redhat/rhaiis/vllm-cpu-rhel9(Red Hat ai_inference_server 3) All versions No fix listed No fix yet
redhat/rhaiis/vllm-tpu-rhel9(Red Hat ai_inference_server 3) All versions No fix listed No fix yet
redhat/rhelai3/bootc-cuda-rhel9(Red Hat enterprise_linux_ai 3) All versions No fix listed No fix yet
redhat/rhelai3/bootc-gaudi-rhel9(Red Hat enterprise_linux_ai 3) All versions No fix listed No fix yet
redhat/rhelai3/bootc-rocm-rhel9(Red Hat enterprise_linux_ai 3) All versions No fix listed No fix yet
redhat/rhelai3/disk-image-cuda-rhel9(Red Hat enterprise_linux_ai 3) All versions No fix listed No fix yet
redhat/rhoai/odh-feature-server-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
redhat/rhoai/odh-mlflow-rhel9:1793002327(Red Hat openshift_ai 3.4 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-mlflow-rhel9:1793584398(Red Hat openshift_ai 3.5 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9:1793729054(Red Hat openshift_ai 3.5 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9:1793679560(Red Hat openshift_ai 3.5 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9:1793680055(Red Hat openshift_ai 3.5 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9:1793725552(Red Hat openshift_ai 3.5 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9:1793725584(Red Hat openshift_ai 3.5 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9:1793725842(Red Hat openshift_ai 3.5 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-th-torch-cpu-py312-rhel9:1793688471(Red Hat openshift_ai 3.5 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-th-torch-cuda-py312-rhel9:1793715343(Red Hat openshift_ai 3.5 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-th-torch-rocm-py312-rhel9:1793680216(Red Hat openshift_ai 3.5 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-th06-cpu-torch210-py312-rhel9:1793084640(Red Hat openshift_ai 3.4 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-th06-cuda130-torch210-py312-rhel9:1792748650(Red Hat openshift_ai 3.4 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-th06-rocm64-torch291-py312-rhel9:1792745990(Red Hat openshift_ai 3.4 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-training-cuda128-torch29-py312-rhel9:1792890022(Red Hat openshift_ai 3.4 el9) All versions No fix listed No fix yet

… and 41 more packages.

Affected products

ProductAffected versionsFixed in
gitpython-developers GitPython = < 3.2.1 No fix listed
pypi gitpython(PyPI) < 3.2.1 3.2.1
pypi gitpython(PyPI) = 0.1.7 No fix listed
pypi gitpython(PyPI) = 0.2.0-beta1 No fix listed
pypi gitpython(PyPI) = 0.3.0-beta1 No fix listed
pypi gitpython(PyPI) = 0.3.0-beta2 No fix listed
pypi gitpython(PyPI) = 0.3.1-beta2 No fix listed
pypi gitpython(PyPI) = 0.3.2 No fix listed
pypi gitpython(PyPI) = 0.3.2.1 No fix listed
pypi gitpython(PyPI) = 0.3.2.RC1 No fix listed
pypi gitpython(PyPI) = 0.3.3 No fix listed
pypi gitpython(PyPI) = 0.3.4 No fix listed
pypi gitpython(PyPI) = 0.3.5 No fix listed
pypi gitpython(PyPI) = 0.3.6 No fix listed
pypi gitpython(PyPI) = 0.3.7 No fix listed
pypi gitpython(PyPI) = 1.0.0 No fix listed
pypi gitpython(PyPI) = 1.0.1 No fix listed
pypi gitpython(PyPI) = 1.0.2 No fix listed
pypi gitpython(PyPI) = 2.0.0 No fix listed
pypi gitpython(PyPI) = 2.0.1 No fix listed
pypi gitpython(PyPI) = 2.0.2 No fix listed
pypi gitpython(PyPI) = 2.0.3 No fix listed
pypi gitpython(PyPI) = 2.0.4 No fix listed
pypi gitpython(PyPI) = 2.0.5 No fix listed
pypi gitpython(PyPI) = 2.0.6 No fix listed
Show 174 more
ProductAffected versionsFixed in
pypi gitpython(PyPI) = 2.0.7 No fix listed
pypi gitpython(PyPI) = 2.0.8 No fix listed
pypi gitpython(PyPI) = 2.0.9 No fix listed
pypi gitpython(PyPI) = 2.0.9.dev0 No fix listed
pypi gitpython(PyPI) = 2.0.9.dev1 No fix listed
pypi gitpython(PyPI) = 2.1.0 No fix listed
pypi gitpython(PyPI) = 2.1.1 No fix listed
pypi gitpython(PyPI) = 2.1.10 No fix listed
pypi gitpython(PyPI) = 2.1.11 No fix listed
pypi gitpython(PyPI) = 2.1.12 No fix listed
pypi gitpython(PyPI) = 2.1.13 No fix listed
pypi gitpython(PyPI) = 2.1.14 No fix listed
pypi gitpython(PyPI) = 2.1.15 No fix listed
pypi gitpython(PyPI) = 2.1.2 No fix listed
pypi gitpython(PyPI) = 2.1.3 No fix listed
pypi gitpython(PyPI) = 2.1.4 No fix listed
pypi gitpython(PyPI) = 2.1.5 No fix listed
pypi gitpython(PyPI) = 2.1.6 No fix listed
pypi gitpython(PyPI) = 2.1.7 No fix listed
pypi gitpython(PyPI) = 2.1.8 No fix listed
pypi gitpython(PyPI) = 2.1.9 No fix listed
pypi gitpython(PyPI) = 3.0.0 No fix listed
pypi gitpython(PyPI) = 3.0.1 No fix listed
pypi gitpython(PyPI) = 3.0.2 No fix listed
pypi gitpython(PyPI) = 3.0.3 No fix listed
pypi gitpython(PyPI) = 3.0.4 No fix listed
pypi gitpython(PyPI) = 3.0.5 No fix listed
pypi gitpython(PyPI) = 3.0.6 No fix listed
pypi gitpython(PyPI) = 3.0.7 No fix listed
pypi gitpython(PyPI) = 3.0.8 No fix listed
pypi gitpython(PyPI) = 3.0.9 No fix listed
pypi gitpython(PyPI) = 3.1.0 No fix listed
pypi gitpython(PyPI) = 3.1.1 No fix listed
pypi gitpython(PyPI) = 3.1.10 No fix listed
pypi gitpython(PyPI) = 3.1.11 No fix listed
pypi gitpython(PyPI) = 3.1.12 No fix listed
pypi gitpython(PyPI) = 3.1.13 No fix listed
pypi gitpython(PyPI) = 3.1.14 No fix listed
pypi gitpython(PyPI) = 3.1.15 No fix listed
pypi gitpython(PyPI) = 3.1.16 No fix listed
pypi gitpython(PyPI) = 3.1.17 No fix listed
pypi gitpython(PyPI) = 3.1.18 No fix listed
pypi gitpython(PyPI) = 3.1.19 No fix listed
pypi gitpython(PyPI) = 3.1.2 No fix listed
pypi gitpython(PyPI) = 3.1.20 No fix listed
pypi gitpython(PyPI) = 3.1.22 No fix listed
pypi gitpython(PyPI) = 3.1.23 No fix listed
pypi gitpython(PyPI) = 3.1.24 No fix listed
pypi gitpython(PyPI) = 3.1.25 No fix listed
pypi gitpython(PyPI) = 3.1.26 No fix listed
pypi gitpython(PyPI) = 3.1.27 No fix listed
pypi gitpython(PyPI) = 3.1.28 No fix listed
pypi gitpython(PyPI) = 3.1.29 No fix listed
pypi gitpython(PyPI) = 3.1.3 No fix listed
pypi gitpython(PyPI) = 3.1.30 No fix listed
pypi gitpython(PyPI) = 3.1.31 No fix listed
pypi gitpython(PyPI) = 3.1.32 No fix listed
pypi gitpython(PyPI) = 3.1.33 No fix listed
pypi gitpython(PyPI) = 3.1.34 No fix listed
pypi gitpython(PyPI) = 3.1.35 No fix listed
pypi gitpython(PyPI) = 3.1.36 No fix listed
pypi gitpython(PyPI) = 3.1.37 No fix listed
pypi gitpython(PyPI) = 3.1.38 No fix listed
pypi gitpython(PyPI) = 3.1.4 No fix listed
pypi gitpython(PyPI) = 3.1.40 No fix listed
pypi gitpython(PyPI) = 3.1.41 No fix listed
pypi gitpython(PyPI) = 3.1.42 No fix listed
pypi gitpython(PyPI) = 3.1.43 No fix listed
pypi gitpython(PyPI) = 3.1.44 No fix listed
pypi gitpython(PyPI) = 3.1.45 No fix listed
pypi gitpython(PyPI) = 3.1.46 No fix listed
pypi gitpython(PyPI) = 3.1.47 No fix listed
pypi gitpython(PyPI) = 3.1.48 No fix listed
pypi gitpython(PyPI) = 3.1.49 No fix listed
pypi gitpython(PyPI) = 3.1.5 No fix listed
pypi gitpython(PyPI) = 3.1.50 No fix listed
pypi gitpython(PyPI) = 3.1.51 No fix listed
pypi gitpython(PyPI) = 3.1.52 No fix listed
pypi gitpython(PyPI) = 3.1.53 No fix listed
pypi gitpython(PyPI) = 3.1.54 No fix listed
pypi gitpython(PyPI) = 3.1.55 No fix listed
pypi gitpython(PyPI) = 3.1.56 No fix listed
pypi gitpython(PyPI) = 3.1.57 No fix listed
pypi gitpython(PyPI) = 3.1.58 No fix listed
pypi gitpython(PyPI) = 3.1.59 No fix listed
pypi gitpython(PyPI) = 3.1.6 No fix listed
pypi gitpython(PyPI) = 3.1.60 No fix listed
pypi gitpython(PyPI) = 3.1.61 No fix listed
pypi gitpython(PyPI) = 3.1.62 No fix listed
pypi gitpython(PyPI) = 3.1.7 No fix listed
pypi gitpython(PyPI) = 3.1.8 No fix listed
pypi gitpython(PyPI) = 3.1.9 No fix listed
pypi gitpython(PyPI) = 3.2.0 No fix listed
debian/python-git(Debian:12) < 3.1.30-1+deb12u3 3.1.30-1+deb12u3
debian/python-git(Debian:12) = 3.1.30-1 No fix listed
debian/python-git(Debian:12) = 3.1.30-1+deb12u2 No fix listed
debian/python-git(Debian:13) < 3.1.44-1+deb13u1 3.1.44-1+deb13u1
debian/python-git(Debian:13) = 3.1.44-1 No fix listed
debian/python-git(Debian:14) < 3.2.1-1 3.2.1-1
debian/python-git(Debian:14) = 3.1.44-1 No fix listed
debian/python-git(Debian:14) = 3.1.45-1 No fix listed
debian/python-git(Debian:14) = 3.1.46-1 No fix listed
debian/python-git(Debian:14) = 3.1.50-1 No fix listed
debian/python-git(Debian:14) = 3.1.61-1 No fix listed
debian/python-git(Debian:14) = 3.1.62-1 No fix listed
debian/python-git(Debian:14) = 3.1.62-2 No fix listed
debian/python-git(Debian:14) = 3.1.62-3 No fix listed
pypi gitpython(PyPI) <= 3.2.0 No fix listed
ubuntu/python-git(Ubuntu:22.04) All versions No fix listed
ubuntu/python-git(Ubuntu:24.04) All versions No fix listed
ubuntu/python-git(Ubuntu:26.04) All versions No fix listed
ubuntu/python-git(Ubuntu:26.10) All versions No fix listed
redhat/python3.12-gitpython(Red Hat:ansible_automation_platform:2.6::el9) < 3.2.1-1.el9ap 3.2.1-1.el9ap
redhat/python-gitpython(Red Hat:satellite:6.16::el8) < 3.2.1-1.el8pc 3.2.1-1.el8pc
redhat/python-pyyaml(Red Hat:satellite:6.16::el8) < 6.0.1-1.el8pc 6.0.1-1.el8pc
redhat/python-gitpython(Red Hat:satellite_capsule:6.16::el8) < 3.2.1-1.el8pc 3.2.1-1.el8pc
redhat/python-pyyaml(Red Hat:satellite_capsule:6.16::el8) < 6.0.1-1.el8pc 6.0.1-1.el8pc
redhat/python-gitpython(Red Hat:satellite:6.16::el9) < 3.2.1-1.el9pc 3.2.1-1.el9pc
redhat/python-pyyaml(Red Hat:satellite:6.16::el9) < 6.0.1-1.el9pc 6.0.1-1.el9pc
redhat/python-gitpython(Red Hat:satellite_capsule:6.16::el9) < 3.2.1-1.el9pc 3.2.1-1.el9pc
redhat/python-pyyaml(Red Hat:satellite_capsule:6.16::el9) < 6.0.1-1.el9pc 6.0.1-1.el9pc
redhat/python-gitpython(Red Hat:satellite:6.17::el9) < 3.2.1-1.el9pc 3.2.1-1.el9pc
redhat/python-gitpython(Red Hat:satellite_capsule:6.17::el9) < 3.2.1-1.el9pc 3.2.1-1.el9pc
redhat/python3.12-gitpython(Red Hat:satellite:6.18::el9) < 3.2.1-1.el9pc 3.2.1-1.el9pc
redhat/python3.12-gitpython(Red Hat:satellite_capsule:6.18::el9) < 3.2.1-1.el9pc 3.2.1-1.el9pc
redhat/python3.12-gitpython(Red Hat:satellite:6.19::el9) < 3.2.1-1.el9pc 3.2.1-1.el9pc
redhat/python3.12-gitpython(Red Hat:satellite_capsule:6.19::el9) < 3.2.1-1.el9pc 3.2.1-1.el9pc
redhat/rhoai/odh-mlflow-rhel9:1793002327(Red Hat:openshift_ai:3.4::el9) All versions No fix listed
redhat/rhoai/odh-th06-cpu-torch210-py312-rhel9:1793084640(Red Hat:openshift_ai:3.4::el9) All versions No fix listed
redhat/rhoai/odh-th06-cuda130-torch210-py312-rhel9:1792748650(Red Hat:openshift_ai:3.4::el9) All versions No fix listed
redhat/rhoai/odh-th06-rocm64-torch291-py312-rhel9:1792745990(Red Hat:openshift_ai:3.4::el9) All versions No fix listed
redhat/rhoai/odh-training-cuda128-torch29-py312-rhel9:1792890022(Red Hat:openshift_ai:3.4::el9) All versions No fix listed
redhat/rhoai/odh-mlflow-rhel9:1793584398(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9:1793729054(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9:1793679560(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9:1793680055(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9:1793725552(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9:1793725584(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9:1793725842(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-th-torch-cpu-py312-rhel9:1793688471(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-th-torch-cuda-py312-rhel9:1793715343(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-th-torch-rocm-py312-rhel9:1793680216(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-training-cuda128-torch29-py312-rhel9:1793763316(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9:1793727032(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9:1793729925(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9:1793685856(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9:1793677376(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9:1793676103(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9:1793730098(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9:1793732080(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9:1793726907(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1793728415(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1793725727(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9:1793728320(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/satellite/iop-vulnerability-engine-rhel9:1794507807(Red Hat:satellite:6.18::el9) All versions No fix listed
redhat/satellite/iop-vmaas-rhel9:1794502597(Red Hat:satellite:6.18::el9) All versions No fix listed
redhat/satellite/iop-vulnerability-engine-rhel9:1794508269(Red Hat:satellite:6.19::el9) All versions No fix listed
redhat/satellite/iop-vmaas-rhel9:1793582990(Red Hat:satellite:6.19::el9) All versions No fix listed
redhat/exploit-intelligence/vulnerability-analysis-rhel9(Red Hat:exploit_intelligence:0) All versions No fix listed
redhat/rhaiis/vllm-cpu-rhel9(Red Hat:ai_inference_server:3) All versions No fix listed
redhat/rhaiis/vllm-tpu-rhel9(Red Hat:ai_inference_server:3) All versions No fix listed
redhat/ansible-automation-platform-24/controller-rhel8(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/ansible-automation-platform-25/controller-rhel8(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/ansible-automation-platform-26/controller-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/ansible-automation-platform-26/hub-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/ansible-automation-platform-27/controller-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/ansible-automation-platform-27/hub-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/automation-controller(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/rhelai3/bootc-cuda-rhel9(Red Hat:enterprise_linux_ai:3) All versions No fix listed
redhat/rhelai3/bootc-gaudi-rhel9(Red Hat:enterprise_linux_ai:3) All versions No fix listed
redhat/rhelai3/bootc-rocm-rhel9(Red Hat:enterprise_linux_ai:3) All versions No fix listed
redhat/rhelai3/disk-image-cuda-rhel9(Red Hat:enterprise_linux_ai:3) All versions No fix listed
redhat/rhoai/odh-feature-server-rhel9(Red Hat:openshift_ai) All versions No fix listed
azure linux GitPython(Azure Linux:4.0) < 0:3.2.1-6.azl4 0:3.2.1-6.azl4

References