CVE-2026-73621
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).
Weakness
- CWE-88: Improper Neutralization of Argument Delimiters in a Command
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-08-14 |
Timeline
- 2026-08-03GitHub advisory published (GHSA-p538-c434-8v24)10 days before publication
- 2026-08-13Published by the CNA11:28 UTC
- 2026-08-14CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-p538-c434-8v24, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI gitpython | before 3.1.56 | 3.1.56 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| gitpython_project gitpython | before 3.1.56fixed in 3.1.56 | 3.1.56 |
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-p538-c434-8v24
- https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-truncation-via-commit-count
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-73621'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-73621'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-73621'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-73621'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).