CVE-2022-24439 json
Remote Code Execution (RCE)
published 2022-12-06 3 y ago modified 2026-06-17 4 mo ago also GHSA-hcpj-qp55-gfph , PYSEC-2022-42992 , EUVD-2022-0114
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 6.1%
- EPSS 6.1% chance of exploitation in 30 days, percentile 93%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi gitpython 3.1.30
- gitpython_project gitpython 3.1.30
- python-git Debian 14, Debian 13, Debian 12 3.1.30-1
debian advisories DEBIAN-CVE-2022-24439
- python-git Ubuntu Pro 14.04 LTS 0.3.2~RC1-3ubuntu0.1~esm1
- python-git Ubuntu Pro 16.04 LTS 1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm1
- python-git Ubuntu Pro 18.04 LTS 2.1.8-1ubuntu0.1~esm1
- python-git Ubuntu Pro 20.04 LTS 3.0.7-1ubuntu0.1~esm1
- python-git Ubuntu Pro 22.04 LTS 3.1.24-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2022-24439
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- foreman satellite utils 6.13, satellite capsule 6.13, satellite 6.13 3.5.1.23-1.el8sat
- foreman-cli satellite utils 6.13, satellite 6.13 3.5.1.23-1.el8sat
- foreman-ec2 satellite 6.13 3.5.1.23-1.el8sat
- rubygem-git satellite 6.13 1.18.0-1.el8sat
- puppet-agent satellite capsule 6.13, satellite 6.13 7.26.0-3.el8sat
- foreman-ovirt satellite 6.13 3.5.1.23-1.el8sat
- python-django satellite capsule 6.13, satellite 6.13 3.2.21-1.el8pc
- foreman-vmware satellite 6.13 3.5.1.23-1.el8sat
red hat advisories RHSA-2023:5931
- python-GitPython openSUSE Tumbleweed 3.1.44-1.1
- python3-bandit openSUSE Tumbleweed 1.7.6-1.1
opensuse advisories openSUSE-SU-2025:14858-1openSUSE-SU-2024:13510-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-24439 updated cvss 9.8
GitPython: improper user input validation leads into a RCE
-
Red Hat Ansible Automation Platform 2 python-gitpython Red Hat OpenStack Platform 13 (Queens) GitPython Red Hat OpenStack Platform 16.1 python3-GitPython Red Hat OpenStack Platform 16.2 python3-GitPython Red Hat OpenStack Platform 17.0 python3-GitPythonaffected: no fix available
-
Red Hat Satellite 6.13 for RHEL 8 python-gitpython 3.1.32-1.el8pc, python39-gitpython 3.1.32-1.el8pcfixed: vendor fix RHSA-2023:5931
-
Red Hat Satellite 6.13 for RHEL 8 foreman 3.5.1.23-1.el8sat, satellite 6.13.5-1.el8sat, rubygem-git 1.18.0-1.el8sat, puppet-agent 7.26.0-3.el8sat, python-django 3.2.21-1.el8pc, foreman-cli 3.5.1.23-1.el8sat, +24 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
6.14% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- security.snyk.io https://security.snyk.io/vuln/SNYK-PYTHON-GITPYTHON-3113858 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | gitpython | <3.1.30 |
3.1.30 |
Affected products
- n/a GitPython
Classification
References
-
github.com
/gitpython-developers/GitPython/commit/2625ed9fc074091c531c27ffcba7902771130261
web
-
security.snyk.io
/vuln/SNYK-PYTHON-GITPYTHON-3113858
web, exploit, third-party-advisory, evidence
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/IKMVYKLWX62UEYKAN64RUZMOIAMZM5JN/
vendor-advisory, mailing-list, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/SJHN3QUXPJIMM6SULIR3PR34UFWRAE7X/
vendor-advisory, mailing-list, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/PF6AXUTC5BO7L2SBJMCVKJSPKWY52I5R/
vendor-advisory, mailing-list, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/AV5DV7GBLMOZT7U3Q4TDOJO5R6G3V6GH/
vendor-advisory, mailing-list, third-party-advisory
-
security.gentoo.org
/glsa/202311-01
vendor-advisory, web, third-party-advisory
-
github.com
/gitpython-developers/GitPython/blob/bec61576ae75803bc4e60d8de7a629c194313d1c/git/repo/base.py%23L1249
web, broken-link
-
lists.debian.org
/debian-lts-announce/2023/07/msg00024.html
mailing-list, web, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2024/10/msg00030.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-24439
advisory
-
github.com
/gitpython-developers/GitPython/issues/1515
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/SJHN3QUXPJIMM6SULIR3PR34UFWRAE7X
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/PF6AXUTC5BO7L2SBJMCVKJSPKWY52I5R
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/IKMVYKLWX62UEYKAN64RUZMOIAMZM5JN
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/AV5DV7GBLMOZT7U3Q4TDOJO5R6G3V6GH
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/SJHN3QUXPJIMM6SULIR3PR34UFWRAE7X
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/PF6AXUTC5BO7L2SBJMCVKJSPKWY52I5R
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/IKMVYKLWX62UEYKAN64RUZMOIAMZM5JN
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/AV5DV7GBLMOZT7U3Q4TDOJO5R6G3V6GH
web
-
github.com
/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2022-42992.yaml
web
-
github.com
/gitpython-developers/GitPython/releases/tag/3.1.30
web
-
github.com
/gitpython-developers/GitPython/blob/bec61576ae75803bc4e60d8de7a629c194313d1c/git/repo/base.py#L1249
web
-
github.com
/gitpython-developers/GitPython
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/IKMVYKLWX62UEYKAN64RUZMOIAMZM5JN/
article, web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/SJHN3QUXPJIMM6SULIR3PR34UFWRAE7X/
article, web
-
github.com
/advisories/GHSA-hcpj-qp55-gfph
advisory
Sources
- CVE List CVE-2022-24439
- GitHub Advisory GHSA-hcpj-qp55-gfph
- NVD CVE-2022-24439
- OSV PYSEC-2022-42992
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.