Vulnerability
CVE-2026-76217
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.
23 advisories report this vulnerability, across 9 ecosystems.
Advisories in Chainguard
- CGA-cj3f-gr5f-wx6q
- CGA-g84c-6hr6-x5h9
- CGA-h58c-cm48-p3m5
- CGA-pwm7-rg8c-rrqx
- CGA-q23g-x2rc-h26p
- CGA-qqq9-cc96-r9j8
- CGA-vr89-8cfr-399m