Bug 2530744 (CVE-2026-87817) - CVE-2026-87817 GitPython: GitPython: Remote Code Execution via Git directory impersonation
Summary: CVE-2026-87817 GitPython: GitPython: Remote Code Execution via Git directory ...
Keywords:
Status: NEW
Alias: CVE-2026-87817
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2531403 2531404
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-09 11:32 UTC by OSIDB Bzimport
Modified: 2026-09-10 11:39 UTC (History)
40 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-09-09 11:32:00 UTC
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.


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