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…
-
DLA-4872-1
python-git - security update
-
DSA-6594-1
python-git - security update
-
GHSA-p538-c434-8v24
GitPython: Arbitrary file truncation via git rev-list --output argument injection in unguarded Commit.count
-
OESA-2026-3699
python-GitPython security update
-
OESA-2026-3700
python-GitPython security update
-
OESA-2026-3721
python-GitPython security update
-
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…
-
SUSE-SU-2026:4072-1
Security update for python-GitPython
-
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…
-
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