{"id":"CVE-2026-73623","published":"2026-08-13T11:28:23Z","modified":"2026-10-08T15:24:44Z","title":"GitPython before 3.1.54 Remote Code Execution via --template","vendor":"gitpython-developers","product":"GitPython","tier":"tail","description":{"text":"GitPython before 3.1.54 contains an incomplete denylist in unsafe_git_clone_options that omits --template, allowing attackers to achieve arbitrary command execution during clone operations. Attackers can supply --template pointing to a directory containing malicious post-checkout hooks that execute when git clones the repository.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00961,"percentile":0.62435,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-6p8h-3wgx-97gf","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-template","tags":["third-party-advisory"]}],"priority":{"score":17.7,"factors":[{"name":"EPSS percentile","points":12.49},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"gitpython-developers","affectedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["< 3.1.54"]}],"fixedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["3.1.54"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-08-15T03:12:13.124652Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"gitpython","vulnerableRanges":["<3.1.54"],"patched":["3.1.54"],"from":["PYSEC-2026-3952"],"provenance":"source"}],"summary":{"text":"GitPython, before version 3.1.54, has an incomplete denylist in its unsafe_git_clone_options handling that fails to block the --template option during clone operations. An attacker who can get a clone of a repository to run with attacker-supplied options can pass --template pointing to a directory containing malicious post-checkout hooks, which execute arbitrary commands when git clones the repository.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:55:13Z"},"euvd":{"id":"EUVD-2026-57792","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gitpython-developers-gitpython-cve-2022-24439","parents":[{"from":"CVE-2022-24439","to":"CVE-2026-73623","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/2625ed9fc074091c531c27ffcba7902771130261","https://github.com/gitpython-developers/GitPython/commit/ffcb5359e87619f4fe4a70a4aff5f08c5580ba97"],"basis":"shared function","functions":["Repo"]}]},{"from":"CVE-2026-67323","to":"CVE-2026-73623","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738","https://github.com/gitpython-developers/GitPython/commit/ffcb5359e87619f4fe4a70a4aff5f08c5580ba97"],"basis":"shared function","functions":["Repo"]}]},{"from":"CVE-2026-73619","to":"CVE-2026-73623","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/7a4f5dcb7bf3cbcbf6e438017efcdfe0bc0d36ca","https://github.com/gitpython-developers/GitPython/commit/ffcb5359e87619f4fe4a70a4aff5f08c5580ba97"],"basis":"shared function","functions":["Repo"]}]}],"packageHistory":[{"cve":"CVE-2026-67326","published":"2026-08-01","fixed":"3.1.50","kev":false},{"cve":"CVE-2026-67324","published":"2026-08-01","fixed":"3.1.51","kev":false},{"cve":"CVE-2026-69097","published":"2026-08-03","fixed":"3.1.53","kev":false,"link":{"from":"CVE-2026-69097","to":"CVE-2026-73623","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:gitpython","fromFixed":"3.1.53","toFixed":"3.1.54","daysApart":10}]}},{"cve":"CVE-2026-73623","published":"2026-08-13","fixed":"3.1.54","kev":false},{"cve":"CVE-2026-73624","published":"2026-08-13","fixed":"3.1.54","kev":false},{"cve":"CVE-2026-73625","published":"2026-08-13","fixed":"3.1.54","kev":false},{"cve":"CVE-2026-73622","published":"2026-08-13","fixed":"3.1.55","kev":false}],"package":"PyPI:gitpython"}}