{"id":"CVE-2026-114145","published":"2026-10-21T20:35:06Z","modified":"2026-10-23T15:08:48Z","title":"GitPython validates a submodule's \".git\" path only after cloning into it (RCE)","vendor":"gitpython-developers","product":"GitPython","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00458,"percentile":0.31689,"provenance":"source"},"cwes":[{"id":"CWE-696","name":"Incorrect Behavior Order"}],"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-83vg-56qc-22m7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gitpython-developers/GitPython/pull/2264","tags":["x_refsource_MISC"]},{"url":"https://github.com/gitpython-developers/GitPython/commit/97eadb888d2f99567e3113f4e455be4ca128f697","tags":["x_refsource_MISC"]},{"url":"https://github.com/gitpython-developers/GitPython/releases/tag/3.2.1","tags":["x_refsource_MISC"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":6.34},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"gitpython-developers","affectedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["< 3.2.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-23T14:54:12.373636Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Gitpython","vulnerableRanges":["<3.2.1"],"patched":["3.2.1"],"from":["GHSA-83vg-56qc-22m7"],"provenance":"source"}],"summary":{"text":"GitPython, a Python library for interacting with Git repositories, has a flaw in its submodule creation logic (create_submodule() in git/objects/submodule/base.py) where a submodule path is validated only after the clone has already written to disk. An attacker who can supply an untrusted submodule path such as .git/hooks, with the destination empty enough for Git to clone into it, could plant an executable post-checkout hook that runs during a later Git operation, which requires the application to accept that untrusted path and a user interaction to trigger the flawed clone.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:54Z"},"euvd":{"id":"EUVD-2026-107557","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gitpython-developers-gitpython-cve-2026-100689","parents":[{"from":"CVE-2026-100689","to":"CVE-2026-114145","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/objects/submodule/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/1ed0ebc2f2e74d979cdc367a4864a7731fdcc093","https://github.com/gitpython-developers/GitPython/commit/97eadb888d2f99567e3113f4e455be4ca128f697"],"basis":"shared function","functions":["_to_relative_path"]}]},{"from":"CVE-2026-110860","to":"CVE-2026-114145","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/objects/submodule/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/24b6f95d4b90ab1483fb601c736ac6e7c059cd61","https://github.com/gitpython-developers/GitPython/commit/97eadb888d2f99567e3113f4e455be4ca128f697"],"basis":"shared function","functions":["abspath","move"]}]}]}}