ADVISORIES

Vulnerability

CVE-2026-87817

GitPython before 3.1.60 fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked files like gitdir, commondir, and HEAD. Attackers can execute arbitrary code by placing a malicious pre-commit hook in the tracked hooks directory that executes when a victim calls index.commit() on a cloned or opened repository.

24 advisories report this vulnerability, across 8 ecosystems.

Advisories

  • CGA-4gh9-vrm7-r5rh
    CVE-2026-87817 Chainguard Updated 5 November 2026
  • CGA-7467-6594-qjg2
    CVE-2026-87817 Chainguard Updated 5 November 2026
  • CGA-8vr3-vwh8-69rq
    CVE-2026-87817 Chainguard Updated 5 November 2026
  • CGA-cpp3-gw43-rv8f
    CVE-2026-87817 Chainguard Updated 5 November 2026
  • CGA-jv6j-w246-26pj
    CVE-2026-87817 Chainguard Updated 5 November 2026
  • CGA-p6x5-8363-6j7h
    CVE-2026-87817 Chainguard Updated 5 November 2026
  • CGA-xc3j-mf7q-pg24
    CVE-2026-87817 Chainguard Updated 5 November 2026
  • DEBIAN-CVE-2026-87817

    GitPython before 3.1.60 fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked files like gitdir, commondir, and HEAD. Attackers can execute arbitrary…

    CVE-2026-87817 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-239g-whfq-7xj9

    GitPython: Repository content can impersonate the git directory, leading to arbitrary code execution

    High CVE-2026-87817 PyPI Updated 30 September 2026
  • OESA-2026-4025

    python-GitPython security update

    High CVE-2026-87817CVE-2026-87818CVE-2026-87819 openEuler Updated 25 September 2026
  • OESA-2026-4026

    python-GitPython security update

    High CVE-2026-87817CVE-2026-87818CVE-2026-87819 openEuler Updated 25 September 2026
  • OESA-2026-4027

    python-GitPython security update

    High CVE-2026-87817CVE-2026-87818CVE-2026-87819 openEuler Updated 25 September 2026
  • PYSEC-2026-3982

    GitPython before 3.1.60 fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked files like gitdir, commondir, and HEAD. Attackers can execute arbitrary…

    CVE-2026-87817 PyPI Updated 17 September 2026
  • RHSA-2026:71113

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update

    CVE-2026-12564CVE-2026-33818CVE-2026-42504CVE-2026-54284 Red Hat Updated 24 November 2026
  • RHSA-2026:71114

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update

    CVE-2026-12564CVE-2026-33818CVE-2026-42504CVE-2026-54284 Red Hat Updated 24 November 2026
  • RHSA-2026:74503

    Red Hat Security Advisory: Satellite 6.19.5 Async Update

    CVE-2026-12405CVE-2026-12423CVE-2026-12540CVE-2026-12541 Red Hat Updated 23 November 2026
  • RHSA-2026:74504

    Red Hat Security Advisory: Satellite 6.18.10 Async Update

    CVE-2026-12405CVE-2026-12423CVE-2026-12540CVE-2026-12541 Red Hat Updated 23 November 2026
  • RHSA-2026:74505

    Red Hat Security Advisory: Satellite 6.17.12 Async Update

    CVE-2026-12405CVE-2026-12423CVE-2026-12540CVE-2026-12541 Red Hat Updated 23 November 2026
  • RHSA-2026:74506

    Red Hat Security Advisory: Satellite 6.16.14 Async Update

    CVE-2026-12405CVE-2026-12423CVE-2026-12540CVE-2026-12541 Red Hat Updated 23 November 2026
  • SUSE-SU-2026:4191-1

    Security update for python-GitPython

    CVE-2026-87817CVE-2026-87818CVE-2026-87819 SUSE Updated 16 September 2026
  • UBUNTU-CVE-2026-87817

    GitPython before 3.1.60 fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked files like gitdir, commondir, and HEAD. Attackers can execute arbitrary…

    CVE-2026-87817 Ubuntu Updated 24 November 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