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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-10-21T20:35:06.548Z
- Modified: 2026-10-23T15:17:25.770Z
- Also known as: GHSA-83vg-56qc-22m7
- Weaknesses: CWE-696
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gitpython-developers GitPython: < 3.2.1
- gitpython (PyPI): before 3.2.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-83vg-56qc-22m7> (web)
- <https://github.com/gitpython-developers/GitPython/pull/2264> (web)
- <https://github.com/gitpython-developers/GitPython/commit/97eadb888d2f99567e3113f4e455be4ca128f697> (web)
- <https://github.com/gitpython-developers/GitPython/releases/tag/3.2.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-114145> (advisory)
- <https://github.com/gitpython-developers/GitPython> (package)

## Sources

- CVE List: [CVE-2026-114145](https://www.cve.org/CVERecord?id=CVE-2026-114145), CVE Terms of Use, modified 2026-10-23
- GitHub Advisory Database: [GHSA-83vg-56qc-22m7](https://github.com/advisories/GHSA-83vg-56qc-22m7), CC-BY-4.0, modified 2026-10-22
- NVD: [CVE-2026-114145](https://nvd.nist.gov/vuln/detail/CVE-2026-114145), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-114145 · Whole record: https://cve.day/CVE-2026-114145.json · Rebuilt by cve.day 2026-11-25T22:59:46.687Z
