CVE-2026-73621
published medium CVSS 4.0 · 5.3GitPython before 3.1.56 Arbitrary File Truncation via Commit.count
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gitpython-developers | — | GitPython0 to < 3.1.56 (affected · semver) · 3.1.56 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
| Debian | bookworm | python-git | Advisory build | 3.1.30-1+deb12u3 | DLA-4872-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| Debian | trixie | python-git | Advisory build | 3.1.44-1+deb13u1 | DSA-6594-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| SUSE / openSUSE | SLE-3-SP7 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
Show 9 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-GitPythonnoarch | Advisory build | 3.1.44-160000.4.1 | OPENSUSE-SU-2026:21874-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-GitPythonaarch64 | Advisory build | 3.1.59-2.1 | OPENSUSE-SU-2026:11566-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-GitPythonppc64le | Advisory build | 3.1.59-2.1 | OPENSUSE-SU-2026:11566-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-GitPythons390x | Advisory build | 3.1.59-2.1 | OPENSUSE-SU-2026:11566-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-GitPythonx86_64 | Advisory build | 3.1.59-2.1 | OPENSUSE-SU-2026:11566-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-GitPythonaarch64 | Advisory build | 3.1.59-2.1 | OPENSUSE-SU-2026:11566-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-GitPythonppc64le | Advisory build | 3.1.59-2.1 | OPENSUSE-SU-2026:11566-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-GitPythons390x | Advisory build | 3.1.59-2.1 | OPENSUSE-SU-2026:11566-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-GitPythonx86_64 | Advisory build | 3.1.59-2.1 | OPENSUSE-SU-2026:11566-1 |
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).
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.4 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gitpython-developers | GitPython | 0 to < 3.1.56 (affected · semver)3.1.56 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
References
2- GitHub Security Advisory (GHSA-p538-c434-8v24) https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-p538-c434-8v24
- VulnCheck Advisory: GitPython before 3.1.56 Arbitrary File Truncation via Commit.count https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-truncation-via-commit-count
Provider assertions
2VulnCheck · cna
GitPython before 3.1.56 Arbitrary File Truncation via Commit.count
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a112037114be03e84325b6d3fa25328752e59ea964f194eacc0c49692cf06083
- Ingested
- 09 Oct 2026, 16:37:07 UTC
- Source record
- Official CVE record