{"id":"CVE-2026-76217","revision":"edd120fa9f0347c190ffa22ae6d4f617","records":[{"revision":"edd120fa9f0347c190ffa22ae6d4f617","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-76217","aliases":[],"title":"GitPython before 3.1.58 Arbitrary File Read via pathspec-from-file","description":"GitPython versions before 3.1.58 fail to validate options passed to git rm and git checkout commands in IndexFile.remove() and Head.checkout(). Attackers can supply --pathspec-from-file and --pathspec-file-nul parameters to read arbitrary files accessible to the process, with full file contents returned in GitCommandError.stderr.","state":0,"publishedAt":"2026-08-19T14:02:02.061+00:00","modifiedAt":"2026-10-08T15:25:00.07+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:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":7.1,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"severity":"MEDIUM"}],"references":["https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hh9p-6wh2-4mfc","https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-pathspec-from-file"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-76217","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-76217","identifiers":["CVE-2026-76217"]},"retained":false,"historicalAffected":[]}],"coverage":[]}