Skip to content
OpenAdvisories
High · 8.1 CVE-2026-110858 EUVD-2026-101741GHSA-f9j4-qggq-h239GHSA-mcf4-6385-6rcq

GitPython 3.1.30 before 3.2.0 Command Injection via Remote.pull() Refspec

Published Oct 14, 2026 · Updated Oct 16, 2026 · Assigned by VulnCheck

Description

GitPython from 3.1.30 before 3.2.0 contains a remote code execution vulnerability in Remote.pull() whose unsafe-option guard inspects only keyword arguments, not the positional refspec. Attackers controlling the refspec can supply --upload-pack=<command> to execute OS commands as the calling process over local-path or SSH transports.

Affected products

VendorProductAffectedFixed
gitpython-developers GitPython 3.1.30 – < 3.2.0 3.2.0

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.2.1-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 Satellite Capsule 6 openvox-agent 8.31.1-1.el9sat RHSA-2026:95657, RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite Capsule 6 openvox-server 8.17.0-1.el9sat RHSA-2026:95657, RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite Capsule 6 python-brotli +1 1.2.1-1.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite Capsule 6 python-django +1 4.2.30-2.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite Capsule 6 python-gitpython +1 3.2.1-1.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite Capsule 6 python-pillow +1 13.0.0-1.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite Capsule 6 python-pyyaml +1 6.0.1-1.el8pc RHSA-2026:95655
Red Hat Satellite Capsule 6 python-urllib3 +1 2.8.0-1.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite Capsule 6 python3.12-brotli 1.2.1-1.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite Capsule 6 python3.12-django 4.2.30-3.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite Capsule 6 python3.12-gitpython 3.2.1-1.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite Capsule 6 python3.12-pillow 13.0.0-1.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite Capsule 6 python3.12-pulp-ansible 1:0.28.10-1.el9pc RHSA-2026:92861
Red Hat Satellite Capsule 6 python3.12-urllib3 2.8.0-1.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite 6 openvox-agent 8.31.1-1.el9sat RHSA-2026:95657, RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite 6 openvox-server 8.17.0-1.el9sat RHSA-2026:95657, RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite 6 python-brotli +1 1.2.1-1.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite 6 python-django +1 4.2.30-2.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite 6 python-gitpython +1 3.2.1-1.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite 6 python-pillow +1 13.0.0-1.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite 6 python-pyyaml +1 6.0.1-1.el8pc RHSA-2026:95655
Red Hat Satellite 6 python-urllib3 +1 2.8.0-1.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite 6 python3.12-brotli 1.2.1-1.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite 6 python3.12-django 4.2.30-3.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite 6 python3.12-gitpython 3.2.1-1.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite 6 python3.12-pillow 13.0.0-1.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite 6 python3.12-pulp-ansible 1:0.28.10-1.el9pc RHSA-2026:92861
Red Hat Satellite 6 python3.12-urllib3 2.8.0-1.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite 6 yggdrasil-worker-forwarder 0.1.1-1.el9sat RHSA-2026:92861
Red Hat Ansible Automation Platform 2 automation-controller-venv-tower 4.5.38-1.el8ap RHSA-2026:99008, RHSA-2026:99007, RHSA-2026:99006
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-GitPython 3.2.1-1.1 openSUSE-SU-2026:12391-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI gitpython >= 3.1.30, < 3.2.0 3.2.0 GHSA-f9j4-qggq-h239

Advisories 9

References