Vulnerability · Published Dec 12, 2022 · Assigned by snyk
CVE-2022-24439Remote Code Execution (RCE)
High 8.1
In plain English
A high-severity security flaw in GitPython. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 6.1% (higher than 93% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-git | 3.1.30-1 | DEBIAN-CVE-2022-24439 |
| Debian:13 | python-git | 3.1.30-1 | DEBIAN-CVE-2022-24439 |
| Debian:14 | python-git | 3.1.30-1 | DEBIAN-CVE-2022-24439 |
| PyPI | gitpython | 3.1.30 | GHSA-hcpj-qp55-gfph |
| PyPI | gitpython | 3.1.30 | PYSEC-2022-42992 |
Affected products (as reported)
References
- https://security.snyk.io/vuln/SNYK-PYTHON-GITPYTHON-3113858
- https://github.com/gitpython-developers/GitPython/blob/bec61576ae75803bc4e60d8de7a629c194313d1c/git/repo/base.py%23L1249
- FEDORA-2022-8146a727a8 vendor-advisory
- FEDORA-2022-ce7369b9ec vendor-advisory
- [debian-lts-announce] 20230725 [SECURITY] [DLA 3502-1] python-git security update mailing-list
- FEDORA-2023-1ec4e542f9 vendor-advisory
- FEDORA-2023-26116901d9 vendor-advisory
- GLSA-202311-01 vendor-advisory
- https://lists.debian.org/debian-lts-announce/2024/10/msg00030.html