Bug 2467802 (CVE-2026-42215) - CVE-2026-42215 GitPython: GitPython: Arbitrary command execution due to bypass of dangerous Git option checks
Summary: CVE-2026-42215 GitPython: GitPython: Arbitrary command execution due to bypas...
Keywords:
Status: NEW
Alias: CVE-2026-42215
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2517357 2517358
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-07 19:01 UTC by OSIDB Bzimport
Modified: 2026-10-05 15:53 UTC (History)
55 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:74504 0 None None None 2026-10-05 15:53:11 UTC
Red Hat Product Errata RHSA-2026:74505 0 None None None 2026-10-05 15:08:42 UTC
Red Hat Product Errata RHSA-2026:74506 0 None None None 2026-10-05 14:52:56 UTC

Description OSIDB Bzimport 2026-05-07 19:01:53 UTC
GitPython is a python library used to interact with Git repositories. From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git options such as --upload-pack and --receive-pack by default, but the equivalent Python kwargs upload_pack and receive_pack bypass that check. If an application passes attacker-controlled kwargs into Repo.clone_from(), Remote.fetch(), Remote.pull(), or Remote.push(), this leads to arbitrary command execution even when allow_unsafe_options is left at its default value of False. This issue has been patched in version 3.1.47.

Comment 10 Jon Orris 2026-10-05 14:52:52 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

Comment 11 Jon Orris 2026-10-05 15:08:38 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 12 Jon Orris 2026-10-05 15:53:07 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


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