---
cve: "CVE-2026-73621"
severity: "MEDIUM"
cvss: 5.3
epss: "20%"
vendor: "gitpython-developers"
kev: false
exploited: false
published: "2026-08-13 12:17:27"
tags: [cve, security, medium]
source: tsecurity.de CVE-Dossier
exported: "2026-09-05T18:42:55+02:00"
---

# CVE-2026-73621

> 5.3 MEDIUM · 🧪 PoC

## Beschreibung

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=, causing 'git rev-list --output=' 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).

## CVSS-Vektor

```
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
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Gering | warn |
| UI Interaktion | Keine | bad |

## Patch verfügbar (OSV)

- e3221f1252346259513e14afeed32f0a203512a7 (Commit)

## Referenzen

- <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>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2026-73621) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
