{"cve":"CVE-2026-76217","nvd":{"published":"2026-08-19T14:17:47.903","modified":"2026-09-03T15:01:08.697","status":"Analyzed","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.","cvss_v4":{"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},"cvss_v3":{"version":"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},"cwes":["CWE-73"],"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","https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hh9p-6wh2-4mfc"],"products":["gitpython_project:gitpython"],"source":"nvd","synced_at":"2026-10-19T22:49:38.260478770+00:00"},"epss":{"cve":"CVE-2026-76217","score":0.00412,"percentile":0.35468,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-hh9p-6wh2-4mfc","url":"https://osv.dev/vulnerability/GHSA-hh9p-6wh2-4mfc","summary":"GitPython: Arbitrary file read via --pathspec-from-file in IndexFile.remove() and Head.checkout()","modified":"2026-09-10T12:26:07.095223621Z","packages":[{"ecosystem":"PyPI","name":"gitpython","purl":"pkg:pypi/gitpython","ranges":["<3.1.58"],"fixed":["3.1.58"]}]},{"id":"PYSEC-2026-3841","url":"https://osv.dev/vulnerability/PYSEC-2026-3841","summary":"GitPython: Arbitrary file read via --pathspec-from-file in IndexFile.remove() and Head.checkout()","modified":"2026-09-10T12:15:05.094485309Z","packages":[{"ecosystem":"PyPI","name":"gitpython","purl":"pkg:pypi/gitpython","ranges":["<3.1.58"],"fixed":["3.1.58"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}