Vulnerability
CVE-2026-114145
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.
27 advisories report this vulnerability, across 7 ecosystems.
Advisories
- CGA-2fx8-fghj-v7qx
- CGA-3qqw-84q5-66j4
- CGA-4mc4-35hm-h98p
- CGA-4xgm-7fvf-4qcm
- CGA-5r4g-434v-grg8
- CGA-6j5v-326w-27qf
- CGA-h275-rwv4-2wh6
- CGA-hqj4-88rm-jr32
- CGA-jcpr-mr9j-68gq
- CGA-m4cj-mfmm-q723
- CGA-mp3f-h3p4-wg62
- CGA-r76p-2jm3-v4gh
- CGA-vf27-463g-m88j
- CGA-w7c8-65r3-637f
- CGA-wqw6-3r4j-qj8c
-
DEBIAN-CVE-2026-114145
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…
-
DLA-4872-1
python-git - security update
-
DSA-6594-1
python-git - security update
-
GHSA-83vg-56qc-22m7
GitPython validates a submodule's ".git" path only after cloning into it (RCE)
-
RHSA-2026:100715
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update
-
RHSA-2026:92861
Red Hat Security Advisory: Satellite 6.19 security update
-
RHSA-2026:95655
Red Hat Security Advisory: Satellite 6.16 EUS security update
-
RHSA-2026:95656
Red Hat Security Advisory: Satellite 6.17 security update
-
RHSA-2026:95657
Red Hat Security Advisory: Satellite 6.18 security update
-
SUSEVEX-CVE-2026-114145
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…
-
UBUNTU-CVE-2026-114145
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…
-
openSUSE-SU-2026:12391-1
python313-GitPython-3.2.1-1.1 on GA media
References
- https://github.com/gitpython-developers/GitPython/commit/97eadb888d2f99567e3113f4e455be4ca128f697
- https://github.com/gitpython-developers/GitPython/pull/2264
- https://github.com/gitpython-developers/GitPython/releases/tag/3.2.1
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-83vg-56qc-22m7