Bug 2531404 - CVE-2026-87817 GitPython: GitPython: Remote Code Execution via Git directory impersonation [fedora-all]
Summary: CVE-2026-87817 GitPython: GitPython: Remote Code Execution via Git directory ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: GitPython
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Lubomír Sedlář
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["28df6985-49b4-4ad7-87c7-7...
Depends On:
Blocks: CVE-2026-87817
TreeView+ depends on / blocked
 
Reported: 2026-09-10 11:39 UTC by Marian Rehak
Modified: 2026-09-10 18:53 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-09-10 18:53:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Marian Rehak 2026-09-10 11:39:35 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.60 fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked files like gitdir, commondir, and HEAD. Attackers can execute arbitrary code by placing a malicious pre-commit hook in the tracked hooks directory that executes when a victim calls index.commit() on a cloned or opened repository.

Comment 1 Ben Beasley 2026-09-10 18:53:21 UTC
This is fixed in 3.1.60, which is already in all Fedora branches, EPEL10, and EPEL9. EPEL8 is at an old version affected by (at this point) dozens of known security issues, but can’t be straightforwardly updated.


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