Vulnerability · Published Aug 13, 2026 · Assigned by VulnCheck

CVE-2026-73621GitPython before 3.1.56 Arbitrary File Truncation via Commit.count

Medium 5.4

In plain English

A medium-severity argument injection in GitPython from gitpython-developers. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 30% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.4%top 70.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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).

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-git3.1.30-1+deb12u3DEBIAN-CVE-2026-73621
Debian:13python-git3.1.44-1+deb13u1DEBIAN-CVE-2026-73621
Debian:14python-git3.1.61-1DEBIAN-CVE-2026-73621
PyPIgitpython3.1.56GHSA-p538-c434-8v24
PyPIgitpython3.1.56PYSEC-2026-3950
Ubuntu:26.10python-gitno fix listedUBUNTU-CVE-2026-73621

Affected products (as reported)

VendorProductVersions
gitpython-developers GitPython 0 – before 3.1.56

Weakness: CWE-88 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L

References