Skip to content
OpenAdvisories
High · 8.1 Public exploit CVE-2022-24439 EUVD-2022-0114GHSA-hcpj-qp55-gfphPYSEC-2022-42992

Remote Code Execution (RCE)

Published Dec 12, 2022 · Updated Nov 3, 2025 · Assigned by snyk

Description

All versions of package gitpython are vulnerable to Remote Code Execution (RCE) due to improper user input validation, which makes it possible to inject a maliciously crafted remote URL into the clone command. Exploiting this vulnerability is possible because the library makes external calls to git without sufficient sanitization of input arguments.

Affected products

VendorProductAffectedFixed
— GitPython < unspecified unspecified

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.30-1 —
Debian 13 python-git 3.1.30-1 —
Debian 12 python-git 3.1.30-1 —
Debian 11 python-git 3.1.14-1+deb11u1 DLA-3939-1
Debian 10 python-git 2.1.11-1+deb10u1 DLA-3502-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS python-git 3.1.24-1ubuntu0.1~esm1 USN-5968-1
Ubuntu Pro 20.04 LTS python-git 3.0.7-1ubuntu0.1~esm1 USN-5968-1
Ubuntu Pro 18.04 LTS python-git 2.1.8-1ubuntu0.1~esm1 USN-5968-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS python-git 1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm1 USN-5968-1
Ubuntu Pro 14.04 LTS python-git 0.3.2~RC1-3ubuntu0.1~esm1 USN-5968-1
ReleasePackageFixed inAdvisory
Red Hat Satellite Utils 6 foreman +1 3.5.1.23-1.el8sat RHSA-2023:5931
Red Hat Satellite Capsule 6 foreman +1 3.5.1.23-1.el8sat RHSA-2023:5931
Red Hat Satellite Capsule 6 puppet-agent 7.26.0-3.el8sat RHSA-2023:5931
Red Hat Satellite Capsule 6 python-django +1 3.2.21-1.el8pc RHSA-2023:5931
Red Hat Satellite Capsule 6 python-gitpython +1 3.1.32-1.el8pc RHSA-2023:5931
Red Hat Satellite 6 foreman +12 3.5.1.23-1.el8sat RHSA-2023:5931
Red Hat Satellite 6 puppet-agent 7.26.0-3.el8sat RHSA-2023:5931
Red Hat Satellite 6 python-django +1 3.2.21-1.el8pc RHSA-2023:5931
Red Hat Satellite 6 python-gitpython +1 3.1.32-1.el8pc RHSA-2023:5931
Red Hat Satellite 6 rubygem-git 1.18.0-1.el8sat RHSA-2023:5931
Red Hat Satellite 6 yggdrasil-worker-forwarder 0.0.3-1.el8sat RHSA-2023:5931
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-GitPython 3.1.44-1.1 openSUSE-SU-2025:14858-1
openSUSE Tumbleweed python3-bandit 1.7.6-1.1 openSUSE-SU-2024:13510-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI gitpython < 3.1.30 3.1.30 GHSA-hcpj-qp55-gfph

Advisories 6

References