CVE-2022-24439: Remote Code Execution (RCE)
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/GitPythonto a version that resolves this vulnerability.Fixed in 3.1.30 - Upgrade
Upgrade
debian/python-gitto a version that resolves this vulnerability.Fixed in 3.1.30-1+deb12u2Fixed in 3.1.30-1+deb12u3Fixed in 3.1.44-1Fixed in 3.1.44-1+deb13u1Fixed in 3.2.1-1 - Upgrade
Upgrade
debian/python-gitto a version that resolves this vulnerability.Fixed in 3.1.30-1
Event History
Frequently Asked Questions
What is the severity of CVE-2022-24439?
The severity of CVE-2022-24439 is critical with a CVSS score of 9.8.
How does CVE-2022-24439 affect GitPython?
All versions of GitPython up to and including 3.1.29 are affected by CVE-2022-24439.
How does CVE-2022-24439 enable remote code execution (RCE)?
CVE-2022-24439 enables remote code execution (RCE) by allowing an attacker to inject a malicious remote URL into the clone command.
What is the recommended remedy for CVE-2022-24439 in GitPython?
The recommended remedy for CVE-2022-24439 in GitPython is to update to version 3.1.30.
Are there any references available for CVE-2022-24439?
Yes, you can find references for CVE-2022-24439 at the following links: [link1](https://github.com/gitpython-developers/GitPython/blob/bec61576ae75803bc4e60d8de7a629c194313d1c/git/repo/base.py%23L1249), [link2](https://lists.debian.org/debian-lts-announce/2023/07/msg00024.html), [link3](https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IKMVYKLWX62UEYKAN64RUZMOIAMZM5JN/).