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-08-17 10:51 UTC (History)
55 users (show)

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


Attachments (Terms of Use)

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.


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