Bug 2509976 (CVE-2026-67323) - CVE-2026-67323 gitpython: GitPython: Arbitrary code execution via command injection due to unguarded Git options
Summary: CVE-2026-67323 gitpython: GitPython: Arbitrary code execution via command inj...
Keywords:
Status: NEW
Alias: CVE-2026-67323
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: 2513715
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-01 13:01 UTC by OSIDB Bzimport
Modified: 2026-08-10 23:47 UTC (History)
42 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-01 13:01:18 UTC
GitPython before 3.1.51 fails to guard against dangerous Git options passed as keyword arguments in Repo.archive() and git.ls_remote(), allowing command injection via options such as --exec/--upload-pack (leading to arbitrary command execution). Additionally, Repo.iter_commits() and Repo.blame() do not check for leading-dash revision arguments, so a revision like --output=<path> can cause Git to open and truncate an arbitrary file. Exploitation requires an application that passes attacker-controlled arguments to these methods.


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