CVE-2026-76217

published 19 Aug 2026 · updated 8 Oct 2026

GitPython before 3.1.58 Arbitrary File Read via pathspec-from-file

6.5MediumCVSS 6.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.1.58.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
gitpython-developers<3.1.583.1.58

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-76217 severity on Zeptric[![CVE-2026-76217](https://zeptric.io/badge/cve/CVE-2026-76217.svg)](https://zeptric.io/cve/CVE-2026-76217)