{"id":"CVE-2026-76217","summary":"GitPython before 3.1.58 Arbitrary File Read via pathspec-from-file","details":"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.","aliases":["GHSA-hh9p-6wh2-4mfc","PYSEC-2026-3841"],"modified":"2026-09-10T12:25:56.327329554Z","published":"2026-08-19T14:02:02.061Z","related":["openSUSE-SU-2026:11566-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76217.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-73"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76217.json"},{"type":"ADVISORY","url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hh9p-6wh2-4mfc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-76217"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-pathspec-from-file"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gitpython-developers/gitpython","events":[{"introduced":"0"},{"fixed":"f7df4bfa6f40575a7ec3996431a0a06ced2b6ff6"}],"database_specific":{"cpe":"cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*","extracted_events":[{"introduced":"0"},{"fixed":"3.1.58"}],"source":["AFFECTED_FIELD","CPE_RANGE"]}}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-76217.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}