Bug 2526214 - CVE-2026-73621 GitPython: GitPython: Arbitrary File Truncation via Commit.count() Argument Injection [fedora-all]
Summary: CVE-2026-73621 GitPython: GitPython: Arbitrary File Truncation via Commit.cou...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: GitPython
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Lubomír Sedlář
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["e1b8becc-fe89-4aac-93fe-1...
Depends On:
Blocks: CVE-2026-73621
TreeView+ depends on / blocked
 
Reported: 2026-08-31 09:21 UTC by Vipul Nair
Modified: 2026-08-31 09:25 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-08-31 09:25:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vipul Nair 2026-08-31 09:21:32 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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

Comment 1 Ben Beasley 2026-08-31 09:25:53 UTC
GitPython ≥ 3.1.56 is already in all Fedora stable repos.


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