CVE-2026-73621 json
GitPython before 3.1.56 Arbitrary File Truncation via Commit.count
published 2026-08-03 3 mo ago modified 2026-10-24 16 d ago also GHSA-p538-c434-8v24 , PYSEC-2026-3950 , EUVD-2026-57825
- cvss
- 5.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 30%
- public exploits
- 0
- none known
Summary
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).
Patch / fix
- pypi gitpython 3.1.56
- gitpython-developers GitPython 3.1.56
- python-git Debian 12 3.1.30-1+deb12u3
- python-git Debian 13 3.1.44-1+deb13u1
- python-git Debian 14 3.1.61-1
debian advisories DEBIAN-CVE-2026-73621
- python-GitPython SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 3.1.34.1693646983.2a2ae77-150400.9.8.1
suse advisories SUSE-SU-2026:4072-1
- python-GitPython openSUSE Leap 16.0 3.1.44-160000.4.1
- python-GitPython openSUSE Tumbleweed 3.1.59-2.1
opensuse advisories openSUSE-SU-2026:21874-1openSUSE-SU-2026:11566-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-73621 updated cvss 5.4
gitpython: GitPython: Arbitrary File Truncation via Commit.count() Argument Injection
-
Red Hat Exploit Intelligence exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 Red Hat Migration Toolkit for Applications 8 mta/mta-solution-server-rhel9 Red Hat Pen Drive Powered by Red Hat Lightspeed pen-drive/pen-drive-scanner-rhel9 Red Hat AI Inference Server rhaiis/vllm-cpu-rhel9, rhaiis/vllm-tpu-rhel9 Red Hat Ansible Automation Platform 2 python-gitpython 3.1.40-1.el9ap, automation-controller 4.5.35-1.el8ap, ansible-automation-platform-24/hub-rhel8, ansible-automation-platform-25/hub-rhel8, ansible-automation-platform-26/hub-rhel9, ansible-automation-platform-27/hub-rhel9, +4 more Red Hat Enterprise Linux AI (RHEL AI) 3 rhelai3/bootc-cuda-rhel9, rhelai3/bootc-rocm-rhel9, rhelai3/bootc-gaudi-rhel9, rhelai3/disk-image-cuda-rhel9affected: workaround, no fix available “Fix deferred”
+5 more productsfewer
Red Hat Hardened Images rust 1.97.1-2.hum1, llvm 22.1.8-4.1.hum1, llvm21 21.1.8-8.hum1, swift-lang 6.3.3-0.1.1.hum1 Red Hat OpenShift AI (RHOAI) rhoai/odh-mlflow-rhel9, rhoai/odh-feature-server-rhel9, rhoai/odh-th06-cpu-torch210-py312-rhel9, rhoai/odh-th06-cpu-torch291-py312-rhel9, rhoai/odh-th06-rocm64-torch291-py312-rhel9, rhoai/odh-th06-cuda130-torch210-py312-rhel9, +20 more Red Hat OpenStack Platform 16.2 python3-GitPython Red Hat OpenStack Platform 17.1 GitPython, python3-GitPython Red Hat Satellite 6 satellite/iop-vmaas-rhel9, python-gitpython 3.1.40-1.el9ap, python-gitpython 3.1.40-3.el8pc, satellite/iop-vulnerability-engine-rhel9
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 mo ago
Exploit prediction
0.36% chance of exploitation in the next 30 days, higher than 30% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-p538-c434-8v24 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.3 | 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 |
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
| CNA | 4.0 | 5.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | gitpython | <3.1.56 |
3.1.56 |
Affected products
- gitpython-developers GitPython
Classification
- Weakness
-
- CWE-88 Improper Neutralization of Argument Delimiters in a Command
References
-
github.com
/gitpython-developers/GitPython/pull/2184
web
-
github.com
/gitpython-developers/GitPython/commit/38553b6fddc7f6a667cdb45a6762343a08fc72b2
web
-
github.com
/gitpython-developers/GitPython/security/advisories/GHSA-p538-c434-8v24
vendor-advisory, web, exploit, evidence
-
vulncheck.com
/advisories/gitpython-before-arbitrary-file-truncation-via-commit-count
third-party-advisory, advisory
-
github.com
/gitpython-developers/GitPython
package
-
github.com
/gitpython-developers/GitPython/releases/tag/3.1.56
web
Sources
- CVE List CVE-2026-73621
- GitHub Advisory GHSA-p538-c434-8v24
- NVD CVE-2026-73621
- OSV PYSEC-2026-3950
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.