CVE-2022-24439 Remote Code Execution (RCE)
Attackers can execute arbitrary code by injecting malicious URLs into GitPython clone commands due to insufficient input sanitization.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-24439?
CVE-2022-24439 is a high-severity command injection vulnerability in Debian Debian Linux, published on 12 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
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.
Weakness: CWE-20
Which versions are affected by CVE-2022-24439?
3 open source packages ship an affected version, including gitpython and GitPython. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
gitpython PyPI | All versions | 3.1.30 |
gitpython PyPI | All versions | 3.1.30 |
GitPython PyPI | All versions | 3.1.30 |
Linux distribution packages (2)
python-GitPython openSUSE:Tumbleweed | All versions | 3.1.44-1.1 |
python3-bandit openSUSE:Tumbleweed | All versions | 1.7.6-1.1 |
Products include Debian Debian Linux, Fedoraproject Fedora, Gitpython Project Gitpython.
How do I fix CVE-2022-24439?
Upgrade gitpython to 3.1.30 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-24439 being exploited?
There is no known exploitation of CVE-2022-24439 in the wild and no public exploit code.
Public exploit code: 2 proofs of concept on GitHub.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2022-24439, GHSA-hcpj-qp55-gfph, MGASA-2023-0001, PYSEC-2022-42992, UBUNTU-CVE-2022-24439, USN-5968-1 and 3 more.