Remote Code Execution (RCE) Affecting python-libnmap package, versions [,0.7.3)


0.0
critical

Snyk CVSS

    Attack Complexity High
    Scope Changed
    Confidentiality High
    Integrity High
    Availability High

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 3.27% (92nd percentile)
Expand this section
NVD
9.8 critical

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PYTHON-PYTHONLIBNMAP-2808864
  • published 6 May 2022
  • disclosed 6 May 2022
  • credit Swascan Offensive Security Team

How to fix?

Upgrade python-libnmap to version 0.7.3 or higher.

Overview

python-libnmap is a Python NMAP library that enabling you to start async nmap tasks, parse and compare/diff scan results.

Affected versions of this package are vulnerable to Remote Code Execution (RCE) when the client application fails to validate the user input in the final nmap command line being executed on the underlying Opearting System. This can lead to the upload and execution of a custom LUA script using the Nmap Scripting Language (NSE).