cve.bz

CVE-2022-24439 Improper Input Validation

9.8 criticalExploit referenceEPSS 6.2%Fix available

Critical (9.8). EPSS 6.2% estimated probability of exploitation activity in the next 30 days. Fixed in gitpython 3.1.30.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
6.2% (unchanged from 6.1% a week ago; 6.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-24439 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-24439?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-24439?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-24439 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gitpython_project:gitpythonbefore 3.1.30
fedoraproject:fedora36
fedoraproject:fedora37
fedoraproject:fedora38
debian:debian_linux10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-hcpj-qp55-gfphPyPIgitpython<3.1.303.1.30
PYSEC-2022-42992PyPIgitpython<3.1.303.1.30

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10python-git2.1.11-1+deb10u1DLA-3502-1
Debian11python-git3.1.14-1+deb11u1DLA-3939-1
Debian12, 13, 14python-git3.1.30-1DEBIAN-CVE-2022-24439
UbuntuPro:14.04:LTSpython-git0.3.2~RC1-3ubuntu0.1~esm1UBUNTU-CVE-2022-24439 USN-5968-1
UbuntuPro:16.04:LTSpython-git1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm1UBUNTU-CVE-2022-24439 USN-5968-1
UbuntuPro:18.04:LTSpython-git2.1.8-1ubuntu0.1~esm1UBUNTU-CVE-2022-24439 USN-5968-1
UbuntuPro:20.04:LTSpython-git3.0.7-1ubuntu0.1~esm1UBUNTU-CVE-2022-24439 USN-5968-1
UbuntuPro:22.04:LTSpython-git3.1.24-1ubuntu0.1~esm1UBUNTU-CVE-2022-24439 USN-5968-1
Red Hatsatellite:6.13::el8foreman, foreman-cli, foreman-ec2 and 10 more0:3.5.1.23-1.el8satRHSA-2023:5931
Red Hatsatellite:6.13::el8rubygem-git0:1.18.0-1.el8satRHSA-2023:5931
Red Hatsatellite:6.13::el8yggdrasil-worker-forwarder0:0.0.3-1.el8satRHSA-2023:5931
Red Hatsatellite:6.13::el8, satellite_capsule:6.13::el8puppet-agent0:7.26.0-3.el8satRHSA-2023:5931
Red Hatsatellite:6.13::el8, satellite_capsule:6.13::el8python-django, python39-django0:3.2.21-1.el8pcRHSA-2023:5931
Red Hatsatellite:6.13::el8, satellite_capsule:6.13::el8python-gitpython, python39-gitpython0:3.1.32-1.el8pcRHSA-2023:5931
Red Hatsatellite_capsule:6.13::el8foreman, foreman-debug0:3.5.1.23-1.el8satRHSA-2023:5931
Red Hatsatellite_utils:6.13::el8foreman, foreman-cli0:3.5.1.23-1.el8satRHSA-2023:5931
openSUSETumbleweedpython-GitPython3.1.44-1.1openSUSE-SU-2025:14858-1
openSUSETumbleweedpython3-bandit1.7.6-1.1openSUSE-SU-2024:13510-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Across all supported releases of Red Hat OpenStack Platform the usage of a compromised GitPython API (clone_from()) is quite limited. The only people capable of exploiting this vulnerability are system administrators. For this reason, the impact has been downgraded to medium.

The impact to Red Hat OpenStack Platform 17 is rated Low as the compromised function is not in use.

ProductPackageStateAdvisory
Red Hat Satellite 6.13 for RHEL 8python-gitpython-0:3.1.32-1.el8pcFixed 2023-10-19RHSA-2023:5931
Red Hat Ansible Automation Platform 2python-gitpythonAffected
Red Hat OpenStack Platform 13 (Queens)GitPythonAffected
Red Hat OpenStack Platform 16.1GitPythonAffected
Red Hat OpenStack Platform 16.2GitPythonAffected
Red Hat OpenStack Platform 17.0GitPythonAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-24439.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON