{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2018-21268","id":"CVE-2018-21268","title":"Node-Traceroute RCE Vulnerability","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.","descriptionLong":"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-25T16:56:53.000Z","updated":"2026-10-20T10:50:25.979235647Z","reserved":"2020-06-25T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":10,"vector":"CVSS:3.1/AC:L/AV:N/A:L/C:H/I:H/PR:N/S:C/UI:N","rating":"critical","source":"mitre"},"metrics":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AC:L/AV:N/A:L/C:H/I:H/PR:N/S:C/UI:N","rating":"critical","source":"mitre"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L","rating":"critical","source":"mitre.org"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"traceroute","purl":"pkg:npm/traceroute","ranges":["<=1.0.0"],"fixed":[],"advisory":"GHSA-8j9v-qhp4-wv55"}],"cwes":["CWE-74"],"aliases":["GHSA-8j9v-qhp4-wv55"],"references":[{"url":"https://www.linkedin.com/posts/op-innovate_shell-command-injection-through-traceroute-activity-6678956453086191616-Rcpy","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.op-c.net/2020/06/17/shell-command-injection-through-traceroute-npm-package/","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://medium.com/%40shay_62828/shell-command-injection-through-traceroute-npm-package-a4cf7b6553e3","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"https://github.com/jaw187/node-traceroute/tags","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.npmjs.com/package/traceroute","tags":["x_refsource_MISC","x_transferred","Product","Third Party Advisory","advisory"]},{"url":"https://www.npmjs.com/advisories/1465","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://snyk.io/vuln/npm:traceroute:20160311","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://github.com/jaw187/node-traceroute/commit/b99ee024a01a40d3d20a92ad3769cc78a3f6386f","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-21268","tags":["advisory"]},{"url":"https://github.com/jaw187/node-traceroute","tags":["package"]},{"url":"https://medium.com/@shay_62828/shell-command-injection-through-traceroute-npm-package-a4cf7b6553e3","tags":["web"]},{"url":"https://www.op-c.net/2020/06/17/shell-command-injection-through-traceroute-npm-package","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.04286,"epssPercentile":0.91302,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2018-21268","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-21268","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2018-21268","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-8j9v-qhp4-wv55","ok":true,"note":"GHSA-8j9v-qhp4-wv55"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2018-21268","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}