Bug 2515274 (CVE-2026-73621) - CVE-2026-73621 gitpython: GitPython: Arbitrary File Truncation via Commit.count() Argument Injection
Summary: CVE-2026-73621 gitpython: GitPython: Arbitrary File Truncation via Commit.cou...
Keywords:
Status: NEW
Alias: CVE-2026-73621
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-13 12:19 UTC by OSIDB Bzimport
Modified: 2026-08-19 16:10 UTC (History)
42 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-13 12:19:51 UTC
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).


Note You need to log in before you can comment on or make changes to this bug.