ADVISORIES

Vulnerability

CVE-2026-78678

GitPython versions before 3.1.59 contain an incomplete denylist in the unsafe_git_revision_options guard that omits --contents and -S options, allowing attackers to read arbitrary files by passing these options to Repo.blame(). Attackers can supply revision values like --contents=/etc/passwd to leak file contents through the blame result returned to the caller.

12 advisories report this vulnerability, across 6 ecosystems.

Advisories

  • ALPINE-CVE-2026-78678

    GitPython versions before 3.1.59 contain an incomplete denylist in the unsafe_git_revision_options guard that omits --contents and -S options, allowing attackers to read arbitrary files by passing these options to…

    CVE-2026-78678 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2026-78678
    CVE-2026-78678 Alpine Updated 18 November 2026
  • CGA-2852-f5mc-5c45
    CVE-2026-78678 Chainguard Updated 5 November 2026
  • DEBIAN-CVE-2026-78678

    GitPython versions before 3.1.59 contain an incomplete denylist in the unsafe_git_revision_options guard that omits --contents and -S options, allowing attackers to read arbitrary files by passing these options to…

    CVE-2026-78678 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-5xxx-qhh7-9287

    GitPython: Incomplete unsafe_git_revision_options denylist omits --contents/-S, enabling arbitrary file read via Repo.blame()

    Moderate CVE-2026-78678 PyPI Updated 8 September 2026
  • PYSEC-2026-3788

    GitPython versions before 3.1.59 contain an incomplete denylist in the unsafe_git_revision_options guard that omits --contents and -S options, allowing attackers to read arbitrary files by passing these options to…

    CVE-2026-78678 PyPI Updated 3 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
  • SUSEVEX-CVE-2026-78678

    GitPython versions before 3.1.59 contain an incomplete denylist in the unsafe_git_revision_options guard that omits --contents and -S options, allowing attackers to read arbitrary files by passing these options to…

    Moderate CVE-2026-78678 SUSEopenSUSE Updated 8 October 2026
  • openSUSE-SU-2026:11615-1

    python313-GitPython-3.1.59-3.1 on GA media

    CVE-2026-78676CVE-2026-78678CVE-2026-78679 openSUSE Updated 27 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