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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-git | 3.1.30-1+deb12u3 | DEBIAN-CVE-2026-73621 |
| Debian:13 | python-git | 3.1.44-1+deb13u1 | DEBIAN-CVE-2026-73621 |
| Debian:14 | python-git | 3.1.61-1 | DEBIAN-CVE-2026-73621 |
| PyPI | gitpython | 3.1.56 | GHSA-p538-c434-8v24 |
| PyPI | gitpython | 3.1.56 | PYSEC-2026-3950 |
| Ubuntu:26.10 | python-git | no fix listed | UBUNTU-CVE-2026-73621 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- GitHub Security Advisory (GHSA-p538-c434-8v24) vendor-advisory
- VulnCheck Advisory: GitPython before 3.1.56 Arbitrary File Truncation via Commit.count third-party-advisory