Skip to content
Fencer Vulns
high 8.1

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-GitPython
    affected: no fix available
  • Red Hat Satellite 6.13 for RHEL 8 python-gitpython 3.1.32-1.el8pc, python39-gitpython 3.1.32-1.el8pc
    fixed: 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 more
    not 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

Weakness
  • CWE-20 Improper Input Validation
  • CWE-94 Improper Control of Generation of Code

References

Sources

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.