
CVE catalog
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
- Severity
- Medium · CVSS 5.4
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.36% · Oct 25, 2026
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).
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | python-git | sid | 3.2.1-1 | fixed |
| Debian | python-git | forky | 3.2.1-1 | fixed |
| Debian | python-git | trixie | 3.1.44-1 | vulnerable |
| Debian | python-git | bookworm | 3.1.30-1+deb12u2 | vulnerable |
| Cpe | gitpython | Not reported | 3.1.56 | fixed |
| PyPI | gitpython | Not reported | 3.1.56 | fixed |
| PyPI | gitpython | Not reported | 3.1.56 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | python-git | source | sid | 3.1.61-1 | not yet assigned | Not reported | [1144344] |
| Debian | python-git | source | forky | 3.1.61-1 | not yet assigned | Not reported | [1144344] |
| Debian | python-git | source | trixie | (unfixed) | not yet assigned | Not reported | [1144344] |
| Debian | python-git | source | bookworm | (unfixed) | not yet assigned | Not reported | [1144344] |
| Cpe | gitpython | cpe | Not reported | 3.1.56 | Not reported | NVD-CVE-2026-73621 | Not reported |
| PyPI | gitpython | PyPI | Not reported | 3.1.56 | Not reported | PYSEC-2026-3950 | Not reported |
| PyPI | gitpython | PyPI | Not reported | 3.1.56 | Not reported | GHSA-P538-C434-8V24 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-git]Affected
Source package: [python-git]
Details (2)
3.1.30-1+deb12u2· all · bookwormAffected
nvd · python-git · debian · bookworm; nvd · python-git · debian · 12
3.1.30-1+deb12u2· all · bookwormAffected
nvd · python-git · debian · bookworm; nvd · python-git · debian · 12
- [python-git-doc]Affected
Source package: [python-git]
Details (2)
3.1.30-1+deb12u2· all · bookwormAffected
nvd · python-git · debian · bookworm; nvd · python-git · debian · 12
3.1.30-1+deb12u2· all · bookwormAffected
nvd · python-git · debian · bookworm; nvd · python-git · debian · 12
[Debian 13 (Trixie)]
- [python3-git]Affected
Source package: [python-git]
Details (2)
3.1.44-1· all · trixieAffected
nvd · python-git · debian · 13
3.1.44-1· all · trixieAffected
nvd · python-git · debian · 13
- [python-git-doc]Affected
Source package: [python-git]
Details (2)
3.1.44-1· all · trixieAffected
nvd · python-git · debian · 13
3.1.44-1· all · trixieAffected
nvd · python-git · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11566-1.json]
- [https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-p538-c434-8v24]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-73621]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-73621]
- [https://osv.dev/vulnerability/GHSA-p538-c434-8v24]
- [https://security-tracker.debian.org/tracker/CVE-2026-73621]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-73621.json]
- [https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-truncation-via-commit-count]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]