| Name | CVE-2022-24439 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-3502-1, DLA-3939-1 |
| Debian Bugs | 1027163 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| python-git (PTS) | bullseye | 3.1.14-1 | vulnerable |
| bullseye (security) | 3.1.14-1+deb11u1 | fixed | |
| bookworm | 3.1.30-1+deb12u2 | fixed | |
| trixie | 3.1.44-1 | fixed | |
| forky, sid | 3.1.45-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| python-git | source | buster | 2.1.11-1+deb10u1 | DLA-3502-1 | ||
| python-git | source | bullseye | 3.1.14-1+deb11u1 | DLA-3939-1 | ||
| python-git | source | (unstable) | 3.1.30-1 | 1027163 |
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)