Bug 2467800 (CVE-2026-42284) - CVE-2026-42284 GitPython: GitPython: Arbitrary code execution via improper validation of clone options
Summary: CVE-2026-42284 GitPython: GitPython: Arbitrary code execution via improper va...
Keywords:
Status: NEW
Alias: CVE-2026-42284
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: 2517351 2517352 2517353
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:46 UTC
GitPython is a python library used to interact with Git repositories. Prior to version 3.1.47, _clone() validates multi_options as the original list, then executes shlex.split(" ".join(multi_options)). A string like "--branch main --config core.hooksPath=/x" passes validation (starts with --branch), but after split becomes ["--branch", "main", "--config", "core.hooksPath=/x"]. Git applies the config and executes attacker hooks during clone. This issue has been patched in version 3.1.47.

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