ADVISORIES

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…

    CVE-2026-76217 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2026-76217
    CVE-2026-76217 Alpine Updated 18 November 2026
  • CGA-cj3f-gr5f-wx6q
    CVE-2026-76217 ChainguardWolfi Updated 5 November 2026
  • CGA-g84c-6hr6-x5h9
    CVE-2026-76217 Chainguard Updated 5 November 2026
  • CGA-h58c-cm48-p3m5
    CVE-2026-76217 ChainguardWolfi Updated 5 November 2026
  • CGA-pwm7-rg8c-rrqx
    CVE-2026-76217 Chainguard Updated 5 November 2026
  • CGA-q23g-x2rc-h26p
    CVE-2026-76217 Chainguard Updated 5 November 2026
  • CGA-qqq9-cc96-r9j8
    CVE-2026-76217 Chainguard Updated 5 November 2026
  • CGA-vr89-8cfr-399m
    CVE-2026-76217 Chainguard Updated 5 November 2026
  • 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…

    CVE-2026-76217 Debian Updated 31 October 2026
  • DLA-4872-1

    python-git - security update

    CVE-2026-100689CVE-2026-110855CVE-2026-110856CVE-2026-110857 Debian Updated 20 November 2026
  • DSA-6594-1

    python-git - security update

    CVE-2026-42215CVE-2026-42284CVE-2026-44243CVE-2026-44244 Debian Updated 20 November 2026
  • GHSA-hh9p-6wh2-4mfc

    GitPython: Arbitrary file read via --pathspec-from-file in IndexFile.remove() and Head.checkout()

    Moderate CVE-2026-76217 PyPI Updated 10 September 2026
  • OESA-2026-3523

    python-GitPython security update

    High CVE-2026-76217 openEuler Updated 30 August 2026
  • OESA-2026-3524

    python-GitPython security update

    High CVE-2026-76217 openEuler Updated 30 August 2026
  • OESA-2026-3699

    python-GitPython security update

    Critical CVE-2026-73619CVE-2026-73620CVE-2026-73621CVE-2026-73622 openEuler Updated 5 September 2026
  • OESA-2026-3700

    python-GitPython security update

    Critical CVE-2026-73619CVE-2026-73620CVE-2026-73621CVE-2026-73622 openEuler Updated 5 September 2026
  • OESA-2026-3721

    python-GitPython security update

    Critical CVE-2026-73619CVE-2026-73620CVE-2026-73621CVE-2026-73622 openEuler Updated 13 September 2026
  • PYSEC-2026-3841

    GitPython: Arbitrary file read via --pathspec-from-file in IndexFile.remove() and Head.checkout()

    CVE-2026-76217 PyPI Updated 10 September 2026
  • SUSE-SU-2026:4072-1

    Security update for python-GitPython

    CVE-2026-42215CVE-2026-42284CVE-2026-44243CVE-2026-44244 SUSE Updated 13 September 2026
  • 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…

    CVE-2026-76217 Ubuntu Updated 17 October 2026
  • openSUSE-SU-2026:11566-1

    python313-GitPython-3.1.59-2.1 on GA media

    CVE-2026-73619CVE-2026-73620CVE-2026-73621CVE-2026-73623 openSUSE Updated 22 August 2026
  • openSUSE-SU-2026:21874-1

    Security update for python-GitPython

    CVE-2026-67322CVE-2026-67323CVE-2026-67325CVE-2026-67326 openSUSE Updated 25 September 2026

References