{"answers":{"affected":"3 open source packages ship an affected version, including python-libnmap. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-30284 exists.","fix":"Upgrade python-libnmap to 0.7.3 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2022-30284 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-30284 exists.\n\nAffected packages and fixed versions:\n- python-libnmap (PyPI): affected all versions; fixed in 0.7.3\n- python-libnmap (PyPI): affected all versions; fixed in 0.7.3\n- python-libnmap (PyPI): affected all versions; fixed in 0.7.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-30284/ (Markdown: https://insights.sbomify.com/CVE-2022-30284/index.md)","id":"CVE-2022-30284","markdown":"https://insights.sbomify.com/CVE-2022-30284/index.md","name":"CVE-2022-30284","record":{"aliases":["GHSA-qwqv-j7jr-4hp6","PYSEC-2022-42999"],"analysis":{"component_type":"library","fix_type":"no_fix_stated","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python Nmap library","requires_auth":"none","summary":"Remote command execution is possible in python-libnmap if client applications pass unvalidated network input to NmapProcess arguments.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"python-libnmap","vendor":"python-libnmap_project"}],"cvss":{"score":9,"severity":"critical","source":"cna","vector":"CVSS:3.1/AC:H/AV:N/A:H/C:H/I:H/PR:N/S:C/UI:N","version":"3.1"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"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","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Argument injection in python-libnmap","id":"CVE-2022-30284","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2022"},"n_packages":3,"n_references":4,"next":{"headline":"Auth bypass in n/a","id":"CVE-2022-30285"},"packages":[{"ecosystem":"PyPI","fixed":["0.7.3"],"introduced":["0"],"last_affected":[],"package":"python-libnmap","purl":null,"source":"GHSA-qwqv-j7jr-4hp6"},{"ecosystem":"PyPI","fixed":["0.7.3"],"introduced":["0"],"last_affected":[],"package":"python-libnmap","purl":"pkg:pypi/python-libnmap","source":"GHSA-qwqv-j7jr-4hp6"},{"ecosystem":"PyPI","fixed":["0.7.3"],"introduced":["0"],"last_affected":[],"package":"python-libnmap","purl":"pkg:pypi/python-libnmap","source":"PYSEC-2022-42999"}],"prev":{"headline":"Race condition in n/a","id":"CVE-2022-30283"},"products":["n/a"],"published":"2022-05-04","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Remote command execution is possible in python-libnmap if client applications pass unvalidated network input to NmapProcess arguments.","url":"https://insights.sbomify.com/CVE-2022-30284/"}