Skip to content
OpenAdvisories
High · 8.4 CVE-2026-67323 EUVD-2026-51805GHSA-4vpg-pfj8-m33qGHSA-956x-8gvw-wg5vPYSEC-2026-3839

GitPython before 3.1.51 Command Injection via unguarded Git options

Published Aug 1, 2026 · Updated Oct 8, 2026 · Assigned by VulnCheck

Description

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.

Affected products

VendorProductAffectedFixed
gitpython-developers GitPython < 3.1.51 3.1.51

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-git 3.1.61-1 —
Debian 13 python-git 3.1.44-1+deb13u1 —
Debian 12 python-git 3.1.30-1+deb12u3 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-git No fix yet —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS python-git No fix yet —
Ubuntu Pro 24.04 LTS python-git No fix yet —
Ubuntu Pro 22.04 LTS python-git No fix yet —
Ubuntu Pro 20.04 LTS python-git No fix yet —
Ubuntu Pro 18.04 LTS python-git No fix yet —
Ubuntu Pro 16.04 LTS python-git No fix yet —
Ubuntu Pro 14.04 LTS python-git No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 lld +39 22.1.8-4.1.hum1 RHSA-2026:44416
Red Hat Hardened Images 1 lld21 +25 21.1.8-8.hum1 RHSA-2026:45940
Red Hat Hardened Images 1 swift-lang +1 6.3.3-0.1.1.hum1 RHSA-2026:45785
Red Hat Ansible Automation Platform Inside 2 receptor 1.6.8-1.el8ap RHSA-2026:71114, RHSA-2026:71113
Red Hat Ansible Automation Platform Developer 2 automation-controller 4.7.17-1.el9ap RHSA-2026:71113
Red Hat Ansible Automation Platform Developer 2 automation-controller-cli 4.6.32-1.el8ap RHSA-2026:71113, RHSA-2026:59136, RHSA-2026:59135
Red Hat Ansible Automation Platform Developer 2 python-django +1 5.2.17-1.el10ap RHSA-2026:59136
Red Hat Ansible Automation Platform Developer 2 python-sqlparse +1 0.6.0-1.el10ap RHSA-2026:71113
Red Hat Ansible Automation Platform Developer 2 python3.12-django 5.2.17-1.el8ap RHSA-2026:59136, RHSA-2026:59135
Red Hat Ansible Automation Platform Developer 2 python3.12-sqlparse 0.6.0-1.el8ap RHSA-2026:71114, RHSA-2026:71113
Red Hat Ansible Automation Platform Developer 2 receptor 1.6.8-1.el8ap RHSA-2026:71114, RHSA-2026:71113
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Ansible Automation Platform 2 automation-controller +2 4.7.17-1.el9ap RHSA-2026:71113
Red Hat Ansible Automation Platform 2 automation-controller-cli +1 4.6.32-1.el8ap RHSA-2026:71114, RHSA-2026:71113, RHSA-2026:59136
Red Hat Ansible Automation Platform 2 automation-gateway-proxy-server 2.5.10-8.el8ap RHSA-2026:71114, RHSA-2026:71113
Red Hat Ansible Automation Platform 2 automation-gateway-server 2.5.20260824-1.el8ap RHSA-2026:71114, RHSA-2026:59135
Red Hat Ansible Automation Platform 2 automation-platform-ui 2.6.13-1.el9ap RHSA-2026:71113, RHSA-2026:59136
Red Hat Ansible Automation Platform 2 python-django +1 5.2.17-1.el10ap RHSA-2026:59136
Red Hat Ansible Automation Platform 2 python-sqlparse +1 0.6.0-1.el10ap RHSA-2026:71113
Red Hat Ansible Automation Platform 2 python3.12-aiohttp 3.14.3-1.el8ap RHSA-2026:59136, RHSA-2026:59135
Red Hat Ansible Automation Platform 2 python3.12-django 5.2.17-1.el8ap RHSA-2026:59136, RHSA-2026:59135
Red Hat Ansible Automation Platform 2 python3.12-gitpython 3.1.59-1.el8ap RHSA-2026:71114, RHSA-2026:71113, RHSA-2026:59136
Red Hat Ansible Automation Platform 2 python3.12-sqlparse 0.6.0-1.el8ap RHSA-2026:71114, RHSA-2026:71113
Red Hat Ansible Automation Platform 2 receptor 1.6.8-1.el8ap RHSA-2026:71114, RHSA-2026:71113
ReleasePackageFixed inAdvisory
SLES 15 SP6 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLES 15 SP5 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLES 15 SP4 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLES 3 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP6 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLES for SAP 15 SP5 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLES for SAP 15 SP4 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLE HPC 15 SP5 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
SLE HPC 15 SP4 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.8.1 SUSE-SU-2026:4072-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 python-GitPython 3.1.44-160000.4.1 openSUSE-SU-2026:21874-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling checkov 3.3.8-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI gitpython < 3.1.51 3.1.51 GHSA-956x-8gvw-wg5v

Advisories 9

References