CVE-2018-21268
CRITICAL 9.8CVSS 3.1Node-Traceroute RCE Vulnerability
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
- 25 Jun 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-74
- Also known as
- GHSA-8j9v-qhp4-wv55
- Sources
- NVDJSONOSV GHSA-8j9v-qhp4-wv55JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cve@mitre.org (Secondary) | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | traceroute_project | traceroutecpe:2.3:a:traceroute_project:traceroute:*:*:*:*:*:node.js:*:* |
<= 1.0.0 | |
| OSV | npm | traceroute | <= 1.0.0 |
References
- https://github.com/jaw187/node-traceroute/commit/b99ee024a01a40d3d20a92ad3769cc78a3f6386f · Patch, Third Party Advisory, WEB
- https://github.com/jaw187/node-traceroute/tags · Third Party Advisory, WEB
- https://medium.com/%40shay_62828/shell-command-injection-through-traceroute-npm-package-a4cf7b6553e3
- https://snyk.io/vuln/npm:traceroute:20160311 · Exploit, Third Party Advisory, WEB
- https://www.linkedin.com/posts/op-innovate_shell-command-injection-through-traceroute-activity-6678956453086191616-Rcpy · Third Party Advisory, WEB
- https://www.npmjs.com/advisories/1465 · Third Party Advisory, WEB
- https://www.npmjs.com/package/traceroute · Product, Third Party Advisory
- https://www.op-c.net/2020/06/17/shell-command-injection-through-traceroute-npm-package/ · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-21268 · ADVISORY
- https://github.com/jaw187/node-traceroute · PACKAGE
- https://medium.com/@shay_62828/shell-command-injection-through-traceroute-npm-package-a4cf7b6553e3 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 25 Jun 2020)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 24 May 2022)