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-10-01 22:32 UTC (History)
40 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:71113 0 None None None 2026-09-23 20:51:39 UTC
Red Hat Product Errata RHSA-2026:71114 0 None None None 2026-09-23 21:08:14 UTC
Red Hat Product Errata RHSA-2026:74504 0 None None None 2026-10-01 22:12:16 UTC
Red Hat Product Errata RHSA-2026:74505 0 None None None 2026-10-01 22:13:11 UTC
Red Hat Product Errata RHSA-2026:74506 0 None None None 2026-10-01 22:32:50 UTC

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.

Comment 1 Jon Orris 2026-09-23 20:51:37 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.6 for RHEL 10
  Red Hat Ansible Automation Platform 2.6 for RHEL 9

Via RHSA-2026:71113 https://access.redhat.com/errata/RHSA-2026:71113

Comment 2 Jon Orris 2026-09-23 21:08:12 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.5 for RHEL 9
  Red Hat Ansible Automation Platform 2.5 for RHEL 8

Via RHSA-2026:71114 https://access.redhat.com/errata/RHSA-2026:71114

Comment 3 Jon Orris 2026-10-01 22:12:13 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.18 for RHEL 9

Via RHSA-2026:74504 https://access.redhat.com/errata/RHSA-2026:74504

Comment 4 Jon Orris 2026-10-01 22:13:09 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.17 for RHEL 9

Via RHSA-2026:74505 https://access.redhat.com/errata/RHSA-2026:74505

Comment 5 Jon Orris 2026-10-01 22:32:48 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.16 for RHEL 8
  Red Hat Satellite 6.16 for RHEL 9

Via RHSA-2026:74506 https://access.redhat.com/errata/RHSA-2026:74506


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