Back
CVE-2018-21268
The traceroute (aka node-traceroute) package through 1.0.0 for Node.js allows remote command injection via the host parameter. This occurs…
Critical10.0EPSS 4.3%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| mitreCNA (assigner) | 3.1 | Critical10.0 | CVSS:3.1/AC:L/AV:N/A:L/C:H/I:H/PR:N/S:C/UI:N |
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 4.3% · top 8.9% of all CVEs (5 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 10.0.
Weakness
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmtracerouteGHSA-8j9v-qhp4-wv55 (opens in a new tab)
References (8)
- https://www.linkedin.com/posts/op-innovate_shell-command-injection-through-traceroute-activity-6678956453086191616-Rcpy (opens in a new tab)x_refsource_MISCx_transferred
- https://www.op-c.net/2020/06/17/shell-command-injection-through-traceroute-npm-package/ (opens in a new tab)x_refsource_MISCx_transferred
- https://medium.com/%40shay_62828/shell-command-injection-through-traceroute-npm-package-a4cf7b6553e3 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/jaw187/node-traceroute/tags (opens in a new tab)x_refsource_MISCx_transferred
- https://www.npmjs.com/package/traceroute (opens in a new tab)x_refsource_MISCx_transferred
- https://www.npmjs.com/advisories/1465 (opens in a new tab)x_refsource_MISCx_transferred
- https://snyk.io/vuln/npm:traceroute:20160311 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/jaw187/node-traceroute/commit/b99ee024a01a40d3d20a92ad3769cc78a3f6386f (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-8j9v-qhp4-wv55 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2018-21268)Record last updated .