CVE-2022-30284 Argument injection in python-libnmap
Remote command execution is possible in python-libnmap if client applications pass unvalidated network input to NmapProcess arguments.
- 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-30284?
CVE-2022-30284 is a critical command injection vulnerability in n/a, published on 4 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In the python-libnmap package through 0.7.2 for Python, remote command execution can occur (if used in a client application that does not validate arguments). NOTE: the vendor believes it would be unrealistic for an application to call NmapProcess with arguments taken from input data that arrived over an untrusted network, and thus the CVSS score corresponds to an unrealistic use case. None of the NmapProcess documentation implies that this is an expected use case
Weakness: CWE-88
Which versions are affected by CVE-2022-30284?
3 open source packages ship an affected version, including python-libnmap. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
python-libnmap PyPI | All versions | 0.7.3 |
python-libnmap PyPI | All versions | 0.7.3 |
python-libnmap PyPI | All versions | 0.7.3 |
Products include Python-Libnmap Project Python-Libnmap.
How do I fix CVE-2022-30284?
Upgrade python-libnmap to 0.7.3 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-30284 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-30284 exists.
Sources
Also known as GHSA-qwqv-j7jr-4hp6, PYSEC-2022-42999.