ADVISORIES

Vulnerability

CVE-2026-73621

GitPython before 3.1.56 contains an argument injection vulnerability in the Commit.count() method, which forwards keyword arguments to 'git rev-list' without the check_unsafe_options guard present in the sibling iter_items method. An attacker who can control options passed to Commit.count (e.g., via an application that forwards a user-supplied options dict) can supply output=<path>, causing 'git rev-list --output=<path>' to open and truncate the target file to zero bytes before revision parsing. This allows destruction/blanking of an arbitrary file at the process's privilege level (no content control, 0-byte truncation).

12 advisories report this vulnerability, across 6 ecosystems.

Advisories

  • DEBIAN-CVE-2026-73621

    GitPython before 3.1.56 contains an argument injection vulnerability in the Commit.count() method, which forwards keyword arguments to 'git rev-list' without the check_unsafe_options guard present in the sibling…

    CVE-2026-73621 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-p538-c434-8v24

    GitPython: Arbitrary file truncation via git rev-list --output argument injection in unguarded Commit.count

    Moderate CVE-2026-73621 PyPI Updated 10 September 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-3950

    GitPython before 3.1.56 contains an argument injection vulnerability in the Commit.count() method, which forwards keyword arguments to 'git rev-list' without the check_unsafe_options guard present in the sibling…

    CVE-2026-73621 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-73621

    GitPython before 3.1.56 contains an argument injection vulnerability in the Commit.count() method, which forwards keyword arguments to 'git rev-list' without the check_unsafe_options guard present in the sibling…

    CVE-2026-73621 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