{"id":"CVE-2026-76218","revision":"231f33d671f54e4a97b36d004c1fb3bd","records":[{"revision":"231f33d671f54e4a97b36d004c1fb3bd","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-76218","aliases":[],"title":"GitPython before 3.1.58 Remote Code Execution via Repo.init","description":"GitPython before 3.1.58 contains a remote code execution vulnerability in Repo.init that forwards unsafe git options without validation. Attackers can supply a template parameter pointing to a directory with malicious git hooks that execute arbitrary code when git operations are performed on the initialized repository.","state":0,"publishedAt":"2026-08-19T14:02:02.729+00:00","modifiedAt":"2026-10-08T15:25:00.661+00:00","affected":[{"ecosystem":"Vendor product","name":"GitPython","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"gitpython-developers\",\n                    \"product\": \"GitPython\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:pypi/gitpython\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"3.1.58\"\n                        },\n                        {\n                            \"version\": \"3.1.58\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":7.7,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"severity":"HIGH"}],"references":["https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-9rj7-rf2p-w77r","https://www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-repo-init"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-76218","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-76218","identifiers":["CVE-2026-76218"]},"retained":false,"historicalAffected":[]}],"coverage":[]}