{"id":"CVE-2018-21268","url":"https://www.cyber-defence.io/tools/cve/CVE-2018-21268","generatedAt":"2026-10-29T00:38:07.866Z","title":"The traceroute (aka node-traceroute) package through 1.0.0 for Node.js allows remote command injection via the host parameter.","description":"The traceroute (aka node-traceroute) package through 1.0.0 for Node.js allows remote command injection via the host parameter. This occurs because the Child.exec() method, which is considered to be not entirely safe, is used. In particular, an OS command can be placed after a newline character.","published":"2020-06-25T17:15:12.000Z","lastModified":"2026-06-17T01:54:30.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-74"],"affected":["traceroute project/traceroute"],"epss":{"score":0.04286,"percentile":0.91063,"date":"2026-10-27","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (4.29%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"https://github.com/jaw187/node-traceroute/commit/b99ee024a01a40d3d20a92ad3769cc78a3f6386f","tags":["Patch","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://github.com/jaw187/node-traceroute/tags","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://medium.com/%40shay_62828/shell-command-injection-through-traceroute-npm-package-a4cf7b6553e3","source":"cve@mitre.org"},{"url":"https://snyk.io/vuln/npm:traceroute:20160311","tags":["Exploit","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://www.linkedin.com/posts/op-innovate_shell-command-injection-through-traceroute-activity-6678956453086191616-Rcpy","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://www.npmjs.com/advisories/1465","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://www.npmjs.com/package/traceroute","tags":["Product","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://www.op-c.net/2020/06/17/shell-command-injection-through-traceroute-npm-package/","tags":["Exploit","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://github.com/jaw187/node-traceroute/commit/b99ee024a01a40d3d20a92ad3769cc78a3f6386f","tags":["Patch","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/jaw187/node-traceroute/tags","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://medium.com/%40shay_62828/shell-command-injection-through-traceroute-npm-package-a4cf7b6553e3","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://snyk.io/vuln/npm:traceroute:20160311","tags":["Exploit","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.linkedin.com/posts/op-innovate_shell-command-injection-through-traceroute-activity-6678956453086191616-Rcpy","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.npmjs.com/advisories/1465","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.npmjs.com/package/traceroute","tags":["Product","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.op-c.net/2020/06/17/shell-command-injection-through-traceroute-npm-package/","tags":["Exploit","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-21268","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}