CVE-2022-24439

NameCVE-2022-24439
DescriptionAll 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3502-1, DLA-3939-1, ELA-894-1
Debian Bugs1027163

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-git (PTS)jessie0.3.2~RC1-3vulnerable
stretch (lts), stretch2.1.1-2+deb9u1fixed
buster (security), buster, buster (lts)2.1.11-1+deb10u2fixed
bullseye3.1.14-1vulnerable
bullseye (security)3.1.14-1+deb11u1fixed
bookworm3.1.30-1+deb12u2fixed
sid, trixie3.1.37-3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-gitsourcejessie(unfixed)end-of-life
python-gitsourcestretch2.1.1-2+deb9u1ELA-894-1
python-gitsourcebuster2.1.11-1+deb10u1DLA-3502-1
python-gitsourcebullseye3.1.14-1+deb11u1DLA-3939-1
python-gitsource(unstable)3.1.30-11027163

Notes

https://security.snyk.io/vuln/SNYK-PYTHON-GITPYTHON-3113858
https://github.com/gitpython-developers/GitPython/commit/787359d80d80225095567340aa5e7ec01847fa9a (3.1.30)
https://github.com/gitpython-developers/GitPython/commit/678a8fe08dd466fcfe8676294b52887955138960 (3.1.30)
Follow-up fix: https://github.com/gitpython-developers/GitPython/commit/ca965ecc81853bca7675261729143f54e5bf4cdd (3.1.32, pending CVE request with Snyk)

Search for package or bug name: Reporting problems