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-08-17 11:05 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: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.


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