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
-
ALPINE-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…
- ALPINE-EDGE-CVE-2026-76217
- 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
-
DEBIAN-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…
-
DLA-4872-1
python-git - security update
-
DSA-6594-1
python-git - security update
-
GHSA-hh9p-6wh2-4mfc
GitPython: Arbitrary file read via --pathspec-from-file in IndexFile.remove() and Head.checkout()
-
OESA-2026-3523
python-GitPython security update
-
OESA-2026-3524
python-GitPython security update
-
OESA-2026-3699
python-GitPython security update
-
OESA-2026-3700
python-GitPython security update
-
OESA-2026-3721
python-GitPython security update
-
PYSEC-2026-3841
GitPython: Arbitrary file read via --pathspec-from-file in IndexFile.remove() and Head.checkout()
-
SUSE-SU-2026:4072-1
Security update for python-GitPython
-
UBUNTU-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…
-
openSUSE-SU-2026:11566-1
python313-GitPython-3.1.59-2.1 on GA media
-
openSUSE-SU-2026:21874-1
Security update for python-GitPython