Vulnerabilities / CVE-2022-24439

critical

CVE-2022-24439

GitPython: improper user input validation leads into a RCE

Published Modified CWE 20
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.2CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (medium), Ubuntu (medium).

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 packages and fixed versions

SourcePackageFixed in
pip::GitHub Security Advisory pipgitpython3.1.30
debian 10python-git2.1.11-1+deb10u1
debian 11python-git3.1.14-1+deb11u1
debian 12python-git3.1.30-1
debian 13python-git3.1.30-1
debian 14python-git3.1.30-1
echopython-git3.1.30-1
Red HatGitPython, python-gitpython, python3-GitPythonno fix listed
ubuntu 14.04-ESMpython-git0.3.2~RC1-3ubuntu0.1~esm1
ubuntu 16.04-ESMpython-git1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm1
ubuntu 18.04-ESMpython-git2.1.8-1ubuntu0.1~esm1
ubuntu 20.04-ESMpython-git3.0.7-1ubuntu0.1~esm1
Show all 16 entries from 14 sources
SourcePackageFixed in
pip::GitHub Security Advisory pipgitpython3.1.30
debian 10python-git2.1.11-1+deb10u1
debian 11python-git3.1.14-1+deb11u1
debian 12python-git3.1.30-1
debian 13python-git3.1.30-1
debian 14python-git3.1.30-1
echopython-git3.1.30-1
Red HatGitPythonno fix listed
Red Hatpython-gitpythonno fix listed
Red Hatpython3-GitPythonno fix listed
ubuntu 14.04-ESMpython-git0.3.2~RC1-3ubuntu0.1~esm1
ubuntu 16.04-ESMpython-git1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm1
ubuntu 18.04-ESMpython-git2.1.8-1ubuntu0.1~esm1
ubuntu 20.04-ESMpython-git3.0.7-1ubuntu0.1~esm1
ubuntu 22.04python-gitno fix listed
ubuntu 22.10python-git3.1.27-1ubuntu0.1

References

All 23 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.