CVE-2026-73621: GitPython before 3.1.56 Arbitrary File Truncation via Commit.count

Published Aug 13, 2026
·
Updated

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 checkunsafeoptions guard present in the sibling iteritems 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).

Affected Software

2 affected components
pypi/GitPython<3.1.56
Gitpython Project Gitpython Python<3.1.56

Event History

Aug 13, 2026
CVE Published
via MITRE·11:28 AM
Data Sourced
via MITRE·11:28 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:17 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-73621?

CVE-2026-73621 has a medium severity score of 5.4.

2

What is the risk level associated with CVE-2026-73621?

CVE-2026-73621 has a risk level of 34.

3

How do I fix CVE-2026-73621?

To fix CVE-2026-73621, upgrade GitPython to version 3.1.56 or later.

4

What vulnerability does CVE-2026-73621 address?

CVE-2026-73621 addresses an argument injection vulnerability in the Commit.count() method of GitPython.

5

What potential impact does CVE-2026-73621 pose?

CVE-2026-73621 allows for arbitrary file truncation when untrusted options are passed to Commit.count.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203